Skip to content

Commit 23c645a

Browse files
TEMPLATES: Simplify
1 parent 31487d6 commit 23c645a

File tree

12 files changed

+22
-22
lines changed

12 files changed

+22
-22
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: future.batchtools
2-
Version: 0.12.2-9952
2+
Version: 0.12.2-9954
33
Depends:
44
R (>= 3.2.0),
55
parallelly,

R/BatchtoolsTemplateFutureBackend-class.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ BatchtoolsTemplateFutureBackend <- function(type, scheduler.latency = 1.0, fs.la
9292
!is.na(template), nzchar(template))
9393

9494
template <- find_template_file(template)
95-
95+
9696
keep <- which(names(dotdotdot) %in% names(make_cfs_formals))
9797
args <- c(list(template = template), dotdotdot[keep], scheduler.latency = scheduler.latency, fs.latency = fs.latency)
9898
cluster.functions <- do.call(make_cfs, args = args)

inst/templates/lsf.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#BSUB -o <%= log.file %>
1313

1414
## Resources needed
15-
<% if (length(resources) > 0) {
15+
<%
1616
## As-is resource specifications
1717
if ("asis" %in% names(resources)) {
1818
lines <- resources[["asis"]]
@@ -26,7 +26,7 @@
2626
opts <- sprintf("-%s=%s", names(opts), opts)
2727
lines <- sprintf("#BSUB %s", c(lines, opts))
2828
writeLines(lines)
29-
} %>
29+
%>
3030

3131
echo "Batchtools information:"
3232
echo "- job name: '<%= job.name %>'"

inst/templates/openlava.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#BSUB -o <%= log.file %>
1313

1414
## Resources needed
15-
<% if (length(resources) > 0) {
15+
<%
1616
## As-is resource specifications
1717
if ("asis" %in% names(resources)) {
1818
lines <- resources[["asis"]]
@@ -26,7 +26,7 @@
2626
opts <- sprintf("-%s=%s", names(opts), opts)
2727
lines <- sprintf("#BSUB %s", c(lines, opts))
2828
writeLines(lines)
29-
} %>
29+
%>
3030

3131
echo "Batchtools information:"
3232
echo "- job name: '<%= job.name %>'"

inst/templates/sge.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#$ -cwd
2222

2323
## Resources needed:
24-
<% if (length(resources) > 0) {
24+
<%
2525
## As-is resource specifications
2626
if ("asis" %in% names(resources)) {
2727
lines <- resources[["asis"]]
@@ -35,7 +35,7 @@
3535
opts <- sprintf("-l %s=%s", names(opts), opts)
3636
lines <- sprintf("#$ %s", c(lines, opts))
3737
writeLines(lines)
38-
} %>
38+
%>
3939

4040
echo "Batchtools information:"
4141
echo "- job name: '<%= job.name %>'"

inst/templates/slurm.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#SBATCH --output=<%= log.file %>
1212

1313
## Resources needed:
14-
<% if (length(resources) > 0) {
14+
<%
1515
## As-is resource specifications
1616
if ("asis" %in% names(resources)) {
1717
lines <- resources[["asis"]]
@@ -25,7 +25,7 @@
2525
opts <- sprintf("--%s=%s", names(opts), opts)
2626
lines <- sprintf("#SBATCH %s", c(lines, opts))
2727
writeLines(lines)
28-
} %>
28+
%>
2929

3030
echo "Batchtools information:"
3131
echo "- job name: '<%= job.name %>'"

inst/templates/torque.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#PBS -j oe
1616

1717
## Resources needed:
18-
<% if (length(resources) > 0) {
18+
<%
1919
## As-is resource specifications
2020
if ("asis" %in% names(resources)) {
2121
lines <- resources[["asis"]]
@@ -29,7 +29,7 @@
2929
opts <- sprintf("-l %s=%s", names(opts), opts)
3030
lines <- sprintf("#PBS %s", c(lines, opts))
3131
writeLines(lines)
32-
} %>
32+
%>
3333

3434
echo "Batchtools information:"
3535
echo "- job name: '<%= job.name %>'"

man/batchtools_lsf.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/batchtools_openlava.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/batchtools_sge.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)