Package installation on remote machines depends on a CRAN repo, which can be
tricky to set non-interactively. This simple wrapper function looks to see if
a default CRAN mirror has already been set. If it has, it is returned. If
not, fallback
is returned.
1 | cran_repo(fallback = "https://cran.rstudio.com/")
|
Either fallback
, or the result of
getOption("repos")["CRAN"]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.