All behavior toggles of metasurvey.core are controlled through R
options() under the metasurvey. prefix. None of them needs to be
set explicitly: every option has a working default.
Value
No return value. This topic documents the global options recognized by metasurvey.core and their defaults.
Options
metasurvey.engineCharacter. Data-processing engine used when loading surveys. Default
"data.table"(set on load). Change it withset_engine(); seeshow_engines()for the available engines.metasurvey.lazy_processingLogical, default
TRUE. WhenTRUE,step_*()functions record transformations without executing them untilbake_steps()is called. Set withset_lazy_processing(); query withlazy_default().metasurvey.use_copyLogical, default
TRUE. WhenTRUE, steps operate on a copy of the survey so the original object is never modified in place. Set withset_use_copy(); query withuse_copy_default().metasurvey.verboseLogical, default
TRUE. Gates all informational messages emitted by the package. Set it toFALSEto silence them; errors and warnings are not affected.metasurvey.backendA
RecipeBackendobject holding the active recipe backend. Unset by default (an in-memory local backend is used). Configure withset_backend(); query withget_backend().metasurvey.workflow_backendA
WorkflowBackendobject holding the active workflow backend. Unset by default (an in-memory local backend is used). Configure withset_workflow_backend(); query withget_workflow_backend().metasurvey.backend_providerA function
(op, args)that implements the remote ("api") backend. DefaultNULL: core has no network access, and selecting the"api"backend without a registered provider signals ametasurvey_error_backend_unavailableerror (see metasurvey_conditions). Companion packages such asmetasurvey.explorer.backendregister the provider on load.metasurvey.skip_recipesLogical, default
FALSE. WhenTRUE,get_recipe()skips every backend lookup and returnsNULLwith a warning: useful for fully offline runs.
Examples
# Silence informational messages for a session
old <- options(metasurvey.verbose = FALSE)
options(old)
# Current engine and laziness
getOption("metasurvey.engine")
#> [1] "data.table"
lazy_default()
#> [1] TRUE