Can potentially use something like names(sessionInfo()$loadedOnly) to check the user's list of loaded packages against our list of packages that might need an internet connection (like devtools, rvest, httr, curl, etc.) and print a warning if they're in offline mode but have loaded a package that likely needs internet.
Can potentially use something like
names(sessionInfo()$loadedOnly)
to check the user's list of loaded packages against our list of packages that might need an internet connection (likedevtools
,rvest
,httr
,curl
, etc.) and print a warning if they're in offline mode but have loaded a package that likely needs internet.