project_hook | R Documentation |
Project hooks allow to define a function run just after {golem}
project creation.
project_hook(path, package_name, ...)
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, |
... |
Arguments passed from |
Used for side effects
if (interactive()) {
my_proj <- function(...) {
unlink("dev/", TRUE, TRUE)
}
create_golem("ici", project_template = my_proj)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.