These functions add files in the R/ folder
that starts either with fct_ (short for function)
or with utils_.
add_fct(
name,
module = NULL,
pkg = get_golem_wd(),
open = TRUE,
dir_create = TRUE,
with_test = FALSE
)
add_utils(
name,
module = NULL,
pkg = get_golem_wd(),
open = TRUE,
dir_create = TRUE,
with_test = FALSE
)
add_r6(
name,
module = NULL,
pkg = get_golem_wd(),
open = TRUE,
dir_create = TRUE,
with_test = FALSE
)The name of the file
If not NULL, the file will be module specific
in the naming (you don't need to add the leading mod_).
Path to the root of the package. Default is get_golem_wd().
Should the created file be opened?
Creates the directory if it doesn't exist, default is TRUE.
should the module be created with tests?
The path to the file, invisibly.