Learn R Programming

packager (version 1.15.2)

infect: Adjust a Package

Description

Add a variety of extensions to a package (skeleton) and run fakemake::make on it.

Usage

infect(path, fakemake = "check", git_add_and_commit = TRUE, ...)

Value

Invisibly

NULL.

Arguments

path

Path to the package directory (see devtools::as.package).

fakemake

The name for a makelist for fakemake. Set to NULL or FALSE to disable running fakemake::make.

git_add_and_commit

Add and commit changes in git?

...

Arguments to be passed to set_package_info.

See Also

create

Examples

Run this code
if (FALSE) {
if (require("roxygen2")) {
path <- file.path(tempdir(), "mySecondPackage")
usethis::create_package(path = path, open = FALSE)
l1 <- list.files(path, recursive = TRUE)
packager::infect(path = path, fakemake = "roxygen2", fakemake = FALSE)
l2 <- list.files(path, recursive = TRUE)
print(l1); print(l2)
unlink(path, recursive = TRUE)
}
}

Run the code above in your browser using DataLab