upgrade | R Documentation |
Upgrade the version of renv associated with a project, including using a development version from GitHub. Automatically snapshots the update renv, updates the activate script, and restarts R.
If you want to update all packages (including renv) to their latest CRAN
versions, use update()
.
upgrade(project = NULL, version = NULL, reload = NULL, prompt = interactive())
project |
The project directory. If |
version |
The version of renv to be installed. When |
reload |
Boolean; reload renv after install? When |
prompt |
Boolean; prompt 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.
## 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 = "main")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.