Skip to content

Commit

Permalink
avoid zzz to crash when offline, fixes #1203
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentvanhees committed Sep 24, 2024
1 parent bae9171 commit 4cdb02b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -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, "]")
Expand Down

0 comments on commit 4cdb02b

Please sign in to comment.