Last chance! 50% off unlimited learning
Sale ends in
Upgrade the version of renv
associated with a project.
upgrade(project = NULL, version = NULL, reload = NULL, confirm = interactive())
The project directory. If NULL
, then the active project will
be used. If no project is currently active, then the current working
directory is used instead.
The version of renv
to be installed. By default, the latest
version of renv
as available on the active R package repositories is
used.
Boolean; reload renv
after install? When NULL
(the
default), renv
will be re-loaded only if updating renv
for the
active project. Note that this may fail if you've loaded packages
which also depend on renv
.
Boolean; confirm upgrade before proceeding?
A boolean value, indicating whether the requested version of
renv
was successfully installed. Note that this function is normally
called for its side effects.
By default, this function will attempt to install the latest version of
renv
as available on the active R package repositories. If you'd instead
like to try out a development version of renv
, you can explicitly request a
different version of renv
and that version of the package will be
downloaded and installed from GitHub. Use version = "master"
to install the
latest development version of renv
, as from the renv
project's GitHub page.
# NOT RUN {
# upgrade to the latest version of renv
renv::upgrade()
# upgrade to the latest version of renv on GitHub (development version)
renv::upgrade(version = "master")
# }
Run the code above in your browser using DataLab