diff --git a/NEWS.md b/NEWS.md index e09508c7e..74893f564 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,8 @@ - Part 5: Add parameters require_complete_lastnight_part5 to control whether last window is included if last night is incomplete. #1196 +- General: GGIR version look-up in .onattach() now skipped when computer is offline, fixes #1203. + # CHANGES IN GGIR VERSION 3.1-4 - Part 3: Update threshold used for HorAngle to 60 degree, and auto-setting HASPT.ignore.invalid to NA when NotWorn guider is used. #1186 diff --git a/R/zzz.R b/R/zzz.R index 57af7fbb6..3a2ecfaff 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -15,6 +15,7 @@ cran_version <- package_version(pkgs[which(pkgs[,1] == "GGIR"),"Version"]) local_version <- packageVersion("GGIR") behind_cran <- cran_version > local_version + if (length(behind_cran) == 0) return() # handle no internet connection if (interactive()) { if (behind_cran) { msg <- paste0("A newer version of GGIR is available with bug fixes and new features. [", local_version," --> ", cran_version, "]")