infect: Adjust a Package

View source: R/main.R

infectR Documentation

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, ...)

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.

Value

Invisibly NULL.

See Also

create

Examples

## Not run: 
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)
}

## End(Not run)

packager documentation built on Aug. 16, 2023, 5:08 p.m.