A helper used in running examples and docs. This function will change your working directory into a new temporary hipercow root, and start a worker process that will quietly run tasks. This is not intended for people to use outside of running examples!
Usage
hipercow_example_helper(
runner = TRUE,
with_logging = FALSE,
new_directory = TRUE,
initialise = TRUE
)Arguments
- runner
Start a runner? If
TRUE(the default) we start a background process withcallr::r_bgthat will pick tasks off a queue and run them.- with_logging
Run each task with logging; this is quite a bit slower, but enables examples that use task_log_show etc. Only has an effect if
runnerisTRUE.- new_directory
Create new empty (temporary) directory? If
FALSEthen we just use the current directory. This is used in the vignettes where the directory is set already.- initialise
Initialise? If
FALSEthen no initialisation is done. This is intended for examples that will usehipercow_init()later.
