renv_init | R Documentation |
Substitutes renv::init()
to initialize a new renv project with
rspm enabled. This function sets the appropriate infrastructure to
activate the integration. Then, packages can be installed normally via
install.packages
and update.packages
.
renv_init(...)
... |
Arguments to be passed to |
Note that, if renv::install
or renv::update
are called
directly, then rspm::install_sysreqs()
needs to be called manually.
The project directory, invisibly. This function is called for its side effects.
## Not run:
# initialize a new project (with an empty R library)
rspm::renv_init()
# install 'units' and all its dependencies from the system repos
install.packages("units")
# install a specific version and install dependencies manually
renv::install("units@0.8-0")
rspm::install_sysreqs()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.