Make Child app from Parent app with modules
Usage
make_child_app(
parent_app_dir,
child_app_dir,
include_renv = FALSE,
copy_jobs_dir = FALSE,
include_meta_yaml = TRUE,
job_file_type = "Rmd",
framework = "none",
overwrite = FALSE
)Arguments
- parent_app_dir
characterPath to existing parent app, including the parent app directory- child_app_dir
characterPath to new child app, including the child app directory- include_renv
logicalIncluderenvstructure in child app or now. Default isFALSE- copy_jobs_dir
logicalCopy thejobsdirectory from the parent app (TRUE) or use jobs template inmatte/inst. Default isFALSE- include_meta_yaml
logicalInclude the template metadata yaml file in the child app. Default isTRUE- job_file_type
characterType of job template to include ("Rmd" or "qmd"). Default isRmd- framework
characterApp framework used for child. Options are "golem", "rhino" or "none". Default is "none"- overwrite
logicalAllow function to overwrite existing child directory. Default isFALSE
Examples
if (FALSE) { # \dontrun{
make_child_app(parent_app_dir = "inst/parentApp",
child_app_dir = "~/childTest")
make_child_app(parent_app_dir = "inst/parentApp",
child_app_dir = "~/childTest2",
copy_jobs_dir = FALSE,
include_renv = TRUE)
make_child_app(parent_app_dir = "inst/parentApp",
child_app_dir = "~/childTest3",
include_renv = TRUE,
framework = "golem")
} # }