Skip to content

Commit

Permalink
handle no internet connection during .onAttach (same fix as for GGIR …
Browse files Browse the repository at this point in the history
…issue 1203)
  • Loading branch information
vincentvanhees committed Oct 25, 2024
1 parent 0bb390a commit 0ca3cdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
}
pkgs <- available.packages(repos = repos)
cran_version <- package_version(pkgs[which(pkgs[,1] == "GGIRread"),"Version"])
if (length(cran_version) == 0) return() # handle no internet connection
local_version <- utils::packageVersion("GGIRread")
behind_cran <- cran_version > local_version
if (interactive()) {
Expand Down

0 comments on commit 0ca3cdd

Please sign in to comment.