See the example files from
drake_examples()
and drake_example()
for example usage.
drake_hpc_template_files()
a character vector of example tempalte files that
you can write with drake_hpc_template_file()
.
drake_hpc_template_file()
,
drake_examples()
, drake_example()
,
shell_file()
# NOT RUN {
test_with_dir("Quarantine side effects.", {
load_mtcars_example() # Get the code with drake_example("mtcars").
# List the available template files.
drake_hpc_template_files()
# Write a SLURM template file from the SLURM example.
drake_hpc_template_file("slurm_batchtools.tmpl") # Writes slurm_batchtools.tmpl.
library(future.batchtools)
# future::plan(batchtools_slurm, template = "slurm_batchtools.tmpl") # nolint
# make(my_plan, parallelism = "future", jobs = 2) # nolint
})
# }
Run the code above in your browser using DataLab