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.
version
The version of renv to be installed. By default, the latest
version of renv as available on the active R package repositories is
used.
reload
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.
confirm
Boolean; confirm upgrade before proceeding?
Value
A boolean value, indicating whether the requested version of
renv was successfully installed. Note that this function is normally
called for its side effects.
Details
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 renvrenv::upgrade()
# upgrade to the latest version of renv on GitHub (development version)renv::upgrade(version = "master")
# }