Skip to contents

adhoc_stratum() will execute only the stratum, its child laminae and the code therein contained as specified by stratum_path with or without log messages.

Usage

adhoc_stratum(stratum_path, silent = FALSE)

Arguments

stratum_path

Path to stratum folder

silent

Suppress log messages? If FALSE (the default), log messages will be printed to the console. If TRUE, log messages will be suppressed.

Value

invisible data frame of execution plan.

Examples

tmp <- fs::dir_create(fs::file_temp())
result <- strata::build_quick_strata_project(tmp, 1, 1)
adhoc_stratum(
  fs::path(tmp, "strata", "stratum_1"),
)
#> [2024-11-27 15:57:01.6797] ERROR: Stratum does not exist
#> [2024-11-27 15:57:01.7175] INFO: Strata started 
#> [2024-11-27 15:57:01.7178] INFO: Stratum: stratum_1 initialized 
#> [2024-11-27 15:57:01.7181] INFO: Lamina: s1_lamina_1 initialized 
#> [2024-11-27 15:57:01.7185] INFO: Executing: my_code 
#> [1] "I am a placeholder, do not forget to replace me!"
#> [2024-11-27 15:57:01.7191] INFO: Strata finished - duration: 0.0017 seconds 
fs::dir_delete(tmp)