create_renv_for_dev | R Documentation |
Tool to create and maintain renv.lock files. The idea is to have 2 distinct files, one for development and the other for deployment. Indeed, although packages like attachment or pkgload must be installed to develop, they are not necessary in your project, package or Shiny application.
create_renv_for_dev(
path = ".",
dev_pkg = "_default",
folder_to_include = c("dev", "data-raw"),
output = "renv.lock",
install_if_missing = TRUE,
document = TRUE,
pkg_ignore = NULL,
check_if_suggests_is_installed = TRUE,
...
)
create_renv_for_prod(
path = ".",
output = "renv.lock.prod",
dev_pkg = "remotes",
check_if_suggests_is_installed = FALSE,
...
)
path |
Path to your current package source folder |
dev_pkg |
Vector of packages you need for development. Use |
folder_to_include |
Folder to scan to detect development packages |
output |
Path and name of the file created, default is |
install_if_missing |
Logical. Install missing packages. |
document |
Logical. Whether to run |
pkg_ignore |
Vector of packages to ignore from being discovered in your files. This does not prevent them to be in "renv.lock" if they are recursive dependencies. |
check_if_suggests_is_installed |
Logical. Whether to require that packages in the Suggests section are installed. |
... |
Other arguments to pass to |
a renv.lock file
## Not run:
# Writes a renv.lock a file in the user directory
create_renv_for_dev()
create_renv_for_dev(dev_pkg = "attachment")
create_renv_for_prod()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.