migrate | R Documentation |
Migrate a project's infrastructure from packrat to renv.
migrate(
project = NULL,
packrat = c("lockfile", "sources", "library", "options", "cache")
)
project |
The project directory. If |
packrat |
Components of the Packrat project to migrate. See the default argument list for components of the Packrat project that can be migrated. Select a subset of those components for migration as appropriate. |
The project directory, invisibly. Note that this function is normally called for its side effects.
When migrating Packrat projects to renv, the set of components migrated
can be customized using the packrat
argument. The set of components that
can be migrated are as follows:
Name | Description |
lockfile |
Migrate the Packrat lockfile (packrat/packrat.lock ) to the renv lockfile
(renv.lock ). |
sources |
Migrate package sources from the packrat/src folder to the renv
sources folder. Currently, only CRAN packages are migrated to renv --
packages retrieved from other sources (e.g. GitHub) are ignored.
|
library | Migrate installed packages from the Packrat library to the renv project library. |
options | Migrate compatible Packrat options to the renv project. |
cache | Migrate packages from the Packrat cache to the renv cache. |
## Not run:
# migrate Packrat project infrastructure to renv
renv::migrate()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.