File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # #####################################################################
3+ # A batchtools launch script template for Slurm
4+ #
5+ # Author: Henrik Bengtsson
6+ # #####################################################################
7+
8+ # SBATCH --job-name=<%= if (exists("job.name", mode = "character")) job.name else job.hash %>
9+ # SBATCH --output=<%= log.file %>-%j.out
10+ # SBATCH --mail-type=END,FAIL
11+ # SBATCH --nodes=1
12+ # SBATCH --time=00:05:00
13+
14+ # # Resources needed:
15+ < % if (length(resources) > 0) {
16+ opts < - unlist(resources, use.names = TRUE)
17+ opts < - sprintf(" --%s=%s" , names(opts), opts)
18+ opts < - paste(opts, collapse = " ," ) %>
19+ # SBATCH <%= opts %>
20+ < % } %>
21+
22+ # # Launch R and evaluated the batchtools R job
23+ Rscript -e ' batchtools::doJobCollection("<%= uri %>")'
You can’t perform that action at this time.
0 commit comments