try_download | R Documentation |
try_download
downloads from a URL to a local path. Often used for 'getting background stuff in bookdowns. Catches errors
try_download(url, path)
try_download( "https://raw.githubusercontent.com/daaronr/dr-rstuff/master/functions/project_setup.R", here::here("code", "project_setup.R") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.