View source: R/use_rstudio_secondary_repo.R
| use_rstudio_secondary_repo | R Documentation |
Updates the secondary repositories in rstudio-prefs.json.
use_rstudio_secondary_repo(...)
... |
a series of named secondary repositories, e.g.
|
Invisibly returns the updated cran_mirror preference as a named
list on success, or NULL if no updates were made (no changes, user
aborted, or not in an interactive session).
Daniel D. Sjoberg (2021-2022)
S.A. van der Wulp (since 2026)
# Add a repository
use_rstudio_secondary_repo(
ropensci = "https://ropensci.r-universe.dev",
username = "https://username.r-universe.dev"
)
# Remove a repository
use_rstudio_secondary_repo(ropensci = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.