Skip to contents

Generate the required folder structure, and possibly copy the available templates (gate definitions, gating strategy, dictionary).

Usage

genfs(where = getwd(), copy_templates = TRUE)

Arguments

where

Character length one, holding a valid path. Defaults to the current working directory.

copy_templates

Logical, if available templates should be copied into the folder 'templates'.

Value

No return value, called for its side effects, i.e. the creation of the required folder structure.

See also

Examples

td <- tempdir()
data_source <- "https://github.com/bpollner/data/raw/main/flowdex_examples/flowdex_examples.zip"
check_download_data(td, data_source)
exp_home <- paste0(td, "/flowdex_examples")
old_wd <- getwd()
setwd(exp_home)
#
assign("get_settings_from_flowdex_package_root", TRUE, pos=.GlobalEnv)
# only required to make the examples run automatically
# you should not call 'assign' if you run the examples manually
# the effect of setting 'get_settings_from_flowdex_package_root' to TRUE
# is that the file 'flowdex_settings.R' in 'root' of the installed package
# 'flowdex' will be sourced instead of the one in the user-defined location.
#
genfs(exp_home)
#
setwd(old_wd)