fail_gracefully | R Documentation |
CRAN policies require that "Packages which use Internet resources should fail gracefully with an informative message if the resource is not available or has changed (and not give a check warning nor error)." This solution is adapted from kvasilopoulos' response at https://forum.posit.co/t/internet-resources-should-fail-gracefully/49199/11. This function is not exported.
fail_gracefully(remote_file, maxtime = 10)
remote_file |
Remote file to be downloaded. |
maxtime |
Maximum time to check connection before timing out. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.