File tree Expand file tree Collapse file tree 6 files changed +11
-13
lines changed
Expand file tree Collapse file tree 6 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 11Package: future.batchtools
2- Version: 0.12.2-9928
2+ Version: 0.12.2-9929
33Depends:
44 R (>= 3.2.0),
55 parallelly,
Original file line number Diff line number Diff line change 1616 opts < - unlist(resources, use.names = TRUE)
1717 opts < - sprintf(" -%s=%s" , names(opts), opts)
1818 cat(sprintf(" #BSUB %s\n" , opts))
19- < % } %>
19+ } %>
2020
2121echo " Batchtools job name: '<%= job.name %>'"
2222
Original file line number Diff line number Diff line change 1616 opts < - unlist(resources, use.names = TRUE)
1717 opts < - sprintf(" -%s=%s" , names(opts), opts)
1818 cat(sprintf(" #BSUB %s\n" , opts))
19- < % } %>
19+ } %>
2020
2121echo " Batchtools job name: '<%= job.name %>'"
2222
Original file line number Diff line number Diff line change 2424# $ -V
2525
2626# # Resources needed:
27- < % if (exists( " resources " , mode = " list " ) && length(resources) > 0) {
27+ < % if (length(resources) > 0) {
2828 # # As-is resource specifications, e.g.
2929 # # sge_options <- c("-pe smp 2", "-R yes")
3030 # # plan(batchtools_sge, resources = list(asis = sge_options))
Original file line number Diff line number Diff line change 55# Author: Henrik Bengtsson
66# #####################################################################
77
8- < % Slurm defaults
8+
9+ # SBATCH --job-name=<%= job.name %>
10+ # SBATCH --output=<%= log.file %>
11+ < %
912defaults < - list(
1013 nodes = 1, # single-host processing
1114 time = " 00:05:00" , # 5-min runtime
@@ -14,13 +17,9 @@ defaults <- list(
1417resources < - c(resources, defaults[setdiff(names(defaults), names(resources))])
1518opts < - unlist(resources, use.names = TRUE)
1619opts < - sprintf(" --%s=%s" , names(opts), opts)
17- opts < - paste(opts, collapse = " " ) % >
20+ cat(sprintf( " #SBATCH %s\n " , opts))
1821%>
1922
20- # SBATCH --job-name=<%= job.name %>
21- # SBATCH --output=<%= log.file %>
22- # SBATCH <%= opts %>
23-
2423echo " Batchtools job name: '<%= job.name %>'"
2524
2625echo " Session information:"
Original file line number Diff line number Diff line change 2121< % if (length(resources) > 0) {
2222 opts < - unlist(resources, use.names = TRUE)
2323 opts < - sprintf(" %s=%s" , names(opts), opts)
24- opts < - paste(opts, collapse = " ," ) %>
25- # PBS -l <%= opts %>
26- < % } %>
24+ cat(sprintf(" #PBS -l %s\n" , opts))
25+ } %>
2726
2827echo " Batchtools job name: '<%= job.name %>'"
2928
You can’t perform that action at this time.
0 commit comments