So, given that CRAN asks for a package that behaves gracefully when there is no internet, I'm pretty sure there is a base R way to test a function when there is no internet, without actually turning my WiFi down. Right?
Even ChatGP doesn't know
#RStats question:
Given that CRAN asks for functions using the internet to fail gracefully, how can I test the function behavior when there is no internet, other than just turning my Wi-Fi off?
5
1
4
See dang::isConnected() which I initially wrote for another package (maybe RPushBullet? Maybe rfoas?). I basically wrap try() around a url() call and catch the error, if any. Only base #rstats
github.com/eddelbuettel/dangβ¦
Jan 12, 2023 Β· 6:12 PM UTC
1
1
1



