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.
See also
Other adhoc:
adhoc()
,
adhoc_lamina()
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"),
)
#> [2025-03-05 13:50:28.1566] INFO: Strata started
#> [2025-03-05 13:50:28.1571] INFO: Stratum: stratum_1 initialized
#> [2025-03-05 13:50:28.1575] INFO: Lamina: s1_lamina_1 initialized
#> [2025-03-05 13:50:28.1580] INFO: Executing: my_code
#> [1] "I am a placeholder, do not forget to replace me!"
#> [2025-03-05 13:50:28.1587] INFO: Strata finished - duration: 0.0022 seconds
fs::dir_delete(tmp)