
Create a timestamped layer-5 run directory inside a tool dir
Source:R/open_pop.R
dot-create_run_dir.RdCalled at the start of every external tool wrapper (e.g. run_blupf90(),
run_plink()). Creates a unique subdirectory inside pop$run_dirs[[tool]]
for the current invocation and returns the path.
The tool must have been declared via the tools argument of open_pop().
If tool is not in pop$run_dirs, the function errors with a clear message
listing the registered tools.
For v0.40.0 the keep argument is accepted for API completeness but cleanup
is not yet automatically registered. The caller is responsible for deleting
the run directory on success if keep = FALSE or keep = "on_error".