Project hooks allow to define a function run just after {golem}
project creation.
Arguments
- path
Name of the folder to create the package in. This will also be used as the package name.
- package_name
Package name to use. By default,
{golem}usesbasename(path). Ifpath == '.'&package_nameis not explicitly set, thenbasename(getwd())will be used.- ...
Arguments passed from
create_golem(), unused in the default function.
Examples
if (interactive()) {
my_proj <- function(...) {
unlink("dev/", TRUE, TRUE)
}
create_golem("ici", project_template = my_proj)
}