Create a validation structure
val_init.Rd
Creates a structure for validation artifacts. Validation items are stored in
inst/validation
Create the validation packet infrastructure. Intended to create validation infrastructure external to an R package.
Usage
vt_use_validation(pkg = ".", working_dir, ...)
vt_create_package(
pkg = ".",
...,
fields = list(),
rstudio = rstudioapi::isAvailable(),
roxygen = TRUE,
check_name = TRUE,
open = rlang::is_interactive()
)
vt_create_packet(
path = ".",
target,
...,
rstudio = rstudioapi::isAvailable(),
open = rlang::is_interactive()
)
Arguments
- pkg
Top level directory of a package
- working_dir
validation working directory of the project. Defaults to
- ...
Additional argument passed to
vt_use_config()
- fields
A named list of fields to add to
DESCRIPTION
, potentially overriding default values. Seeuse_description()
for how you can set personalized defaults using package options.- rstudio
If
TRUE
, callsuse_rstudio()
to make the new package or project into an RStudio Project. IfFALSE
and a non-package project, a sentinel.here
file is placed so that the directory can be recognized as a project by the here or rprojroot packages.- roxygen
Do you plan to use roxygen2 to document your package?
- check_name
Whether to check if the name is valid for CRAN and throw an error if not.
- open
If
TRUE
, activates the new project:If using RStudio desktop, the package is opened in a new session.
If on RStudio server, the current RStudio project is activated.
Otherwise, the working directory and active project is changed.
- path
A path. If it exists, it is used. If it does not exist, it is created, provided that the parent path exists.
- target
target of validation. Character name of package or scope validation packet is being performed for.