get_scdrake_default_options() returns a list of default scdrake options passed to
options() during the package load.
get_scdrake_options() returns a list of options currently used by scdrake
(their names begin with "scdrake_").
Details
Most of the options are obtained from environment variables named in UPPERCASE,
e.g. the value of scdrake_verbose is taken from SCDRAKE_VERBOSE.
The environment variables are coerced to atomic types (character, logical, integer, double).
The following options are used by scdrake:
scdrake_yq_binary(character, default:Sys.which("yq"))A path to
yqtool's binary.If the default value is
"", it will be set toget_yq_default_path().
scdrake_verbose(logical, env:SCDRAKE_VERBOSE, default:TRUE)If
TRUE,scdrakewill be verbose.
scdrake_cache_dir(character, env:SCDRAKE_CACHE_DIR, default:".drake")A path to
drakecache directory. Thedrakepackage also contains an RStudio addin, which has a shortcut for loading a target under cursor (seeTools -> Modify Keyboard Shortcuts -> "loadd target under cursor"). To know which cache directory to use for loading,drakeis using therstudio_drake_cacheoption. On its load or attach,scdrakewill automatically set this option toscdrake_cache_dir. Just keep in mind thatrstudio_drake_cacheoption will be overwritten if you load thedrakepackage.
scdrake_pipeline_config_dir(character, env:SCDRAKE_PIPELINE_CONFIG_DIR, default:"config")A path to directory containing
pipeline.default.yamland/orpipeline.yamlfiles.
scdrake_single_sample_config_dir(character, env:SCDRAKE_SINGLE_SAMPLE_CONFIG_DIR, default:"config/single_sample")A path to directory containing files for single-sample analysis, see the
dirparameter inload_single_sample_configs().
scdrake_integration_config_dir(character, env:SCDRAKE_INTEGRATION_CONFIG_DIR, default:"config/integration")A path to directory containing files for integration analysis, see the
dirparameter inload_integration_configs().
scdrake_plan_custom_file(character, env:SCDRAKE_PLAN_CUSTOM_FILE, default:"plan_custom.R")A path to file with custom
drakeplan.
scdrake_project_root(character, env:SCDRAKE_PROJECT_ROOT, default:.)A path to
scdrakeproject root. If different from the current working directory (.),scdrakewill first change the working directory before pipeline is run in e.g.run_single_sample_r()orrun_single_sample(). That means other path-specifying options (e.g.scdrake_pipeline_config_dir) and config parameters will become relative toscdrake_project_root- use at your own risk!