View source: R/dependency_management.r
setup_renv | R Documentation |
renv
to track a projectThis function will initialise renv
in a project, both with specified
packages and identified dependencies. If run on an untracked project, it will
first initialise renv
and restart R Studio. If run on a tracked project, it
will install the identified packages into the project library, and update the
lockfile. You can also use this function as a convenience wrapper to get
renv
to track a new package you want to add to the project.
setup_renv(starter_packs = c("sak", "renv"), search_for_deps = TRUE)
starter_packs |
character (default = |
search_for_deps |
(logical; default = |
nothing, called for side effects
## Not run:
# Start tracking a new project
setup_renv()
# renv installs and then restarts, and you need to run it again
# but lets track a specific version of `pins` too
setup_renv(starter_packs = c("sak", "rsconnect", "renv", "pins@0.4.5"))
# some time later, you realise you want to renv to track `zoo`
# this function can get renv to do that too
setup_renv("zoo")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.