Adds r-universe package repositories to your options("repos")
such
that they are used by default in install.packages()
. If the universe
was already enabled, it will not be added again, hence it is harmless
to call this function multiple times.
Arguments
- universe
vector with name(s) of the universe(s), i.e. the subdomain part of
https://ropensci.r-universe.dev
.
Details
Note that changes to your options are not permanent. To automatically
enable a repository for every R session, you can call this function in
your ~/.Rprofile
script.