I'm using the future, future.batchtools and furrr packages within my R script, in order to run code on a slurm-managed remote machine.
When I define my future topology, I pass a template file to future.bacthtools::batchtools_slurm()
and define the computational resources for the slurm jobs with the resources =
argument.
When I then run the furrr::future_pwalk()
function, every future is evaluated with the same resources, namely the ones that I defined in batchtools_slurm()
.
Is there a way to have the jobs use different resources, depending on a variable passed to furrr::future_pwalk()
?
Thanks in advance for any help!