Skip to content

Commit 62ae838

Browse files
committed
shQuote(log.file)
1 parent 8d82dda commit 62ae838

File tree

6 files changed

+9
-2
lines changed

6 files changed

+9
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.Rhistory
12
*~
23
.DS_Store
34
/inst/doc

inst/conf/slurm.R

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
## this is used in tests/testthat/test_slurm.R
12
cluster.functions = makeClusterFunctionsSlurm(system.file(
23
file.path("templates", "slurm-simple.tmpl"),
34
package="batchtools",

inst/conf/slurm.conf

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# this file is used in tests/testthat/test_slurm.R
2+
13
# slurm.conf file generated by configurator easy.html.
24
# Put this file on all nodes of your cluster.
35
# See the slurm.conf man page for more information.

inst/templates/slurm-dortmund.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (backend == "mpi") {
1414
}
1515

1616
# relative paths are not handled well by Slurm
17-
log.file = fs::path_expand(log.file)
17+
log.file = shQuote(fs::path_expand(log.file))
1818
-%>
1919

2020
#SBATCH --job-name=<%= job.name %>

inst/templates/slurm-lido3.tmpl

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616

1717
<%
1818

19+
# relative paths are not handled well by Slurm
20+
log.file = shQuote(fs::path_expand(log.file))
21+
1922
# queue
2023
walltime = asInt(resources$walltime, lower = 60L, upper = 31L * 24L * 60L * 60L)
2124
memory = asInt(resources$memory, lower = 100L, upper = 1024L * 1024L)

inst/templates/slurm-simple.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<%
2121
# relative paths are not handled well by Slurm
22-
log.file = fs::path_expand(log.file)
22+
log.file = shQuote(fs::path_expand(log.file))
2323
-%>
2424

2525

0 commit comments

Comments
 (0)