Creates a container for preset components
Source:R/shiny-rave-compcontainer.R
new_rave_shiny_component_container.Rd
Creates a container for preset components
Usage
new_rave_shiny_component_container(
module_id,
pipeline_name,
pipeline_path = raveio::pipeline_find(pipeline_name),
settings_file = "settings.yaml"
)
Examples
f <- tempfile()
dir.create(f, showWarnings = FALSE, recursive = TRUE)
file.create(file.path(f, "settings.yaml"))
#> [1] TRUE
container <- new_rave_shiny_component_container(
module_id = "module_power_phase_coherence",
pipeline_name = "power_phase_coherence_pipeline",
pipeline_path = f
)
loader_project <- presets_loader_project()
loader_subject <- presets_loader_subject()
container$add_components(
loader_project, loader_subject
)