R/r6_SurveillanceSystem.R
run_task_sequentially_as_rstudio_job_using_load_all.RdExecutes a surveillance task as an RStudio job using devtools::load_all() for package development. This function creates a temporary R script that loads the package and runs the specified task sequentially (cores = 1).
run_task_sequentially_as_rstudio_job_using_load_all(
task_name,
ss_prefix = "global$ss"
)No return value. This function is called for its side effect of launching an RStudio job that executes the surveillance task.
This function is primarily used during package development to test tasks interactively. It creates a temporary R script that:
Loads the package using devtools::load_all()
Sets the task to run with single core (cores = 1)
Executes the task via the surveillance system
if (FALSE) { # \dontrun{
# Run a task as RStudio job during development
run_task_sequentially_as_rstudio_job_using_load_all("covid_analysis")
# Use custom surveillance system prefix
run_task_sequentially_as_rstudio_job_using_load_all(
"covid_analysis",
ss_prefix = "my_ss"
)
} # }