View source: R/local_slurm_array.R
local_slurm_array | R Documentation |
Run a previously created slurm_job
object locally instead of on a
Slurm cluster
local_slurm_array(slr_job, rscript_path = NULL)
slr_job |
An object of class |
rscript_path |
The location of the Rscript command. If not specified, defaults to the location of Rscript within the R installation being run. |
This function is most useful for testing your function on a reduced dataset before submitting the full job to the Slurm cluster.
Call local_slurm_array
on a slurm_job
object created with
slurm_apply(..., submit = FALSE)
or slurm_map(..., submit = FALSE)
.
The job will run serially on the local system rather than being submitted
to the Slurm cluster.
## Not run: sjob <- slurm_apply(func, pars, submit = FALSE) local_slurm_array(sjob) func_result <- get_slurm_out(sjob, "table") # Loads output data into R. cleanup_files(sjob) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.