infect {packager} | R 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
|
fakemake |
The |
git_add_and_commit |
Add and commit changes in git? |
... |
Arguments to be passed to |
Value
See Also
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)
[Package packager version 1.15.2 Index]