golem_hook: Golem Hook function

View source: R/golem_hook.R

golem_hookR Documentation

Golem Hook function

Description

Golem Hook function

Usage

golem_hook(path, package_name, ...)

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} uses basename(path). If path == '.' & package_name is not explicitly set, then basename(getwd()) will be used.

...

Arguments passed from create_golem(), unused in the default function.

Value

Used for side effect

Examples

if (requireNamespace("golem") & interactive()) {
  golem::create_golem(file.path(tempdir(), "myapp"), project_hook = golem_hook)
}

brochure documentation built on Oct. 14, 2026, 5:08 p.m.