Skip to content

Commit 8fc2caa

Browse files
Built-in templates: Harmonize bash template with HPC ones
1 parent d454280 commit 8fc2caa

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
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-9986
2+
Version: 0.12.2-9987
33
Depends:
44
R (>= 3.2.0),
55
parallelly,

inst/templates/bash.tmpl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ exec > <%= log.file %> 2>&1
4646
))
4747
} %>
4848

49+
echo "Session information:"
50+
echo "- timestamp: $(date)"
51+
echo "- hostname: $(hostname)"
52+
echo "- Rscript path: $(which Rscript)"
53+
echo "- Rscript version: $(Rscript --version)"
54+
echo "- Rscript library paths: $(Rscript -e "cat(shQuote(.libPaths()), sep = ' ')")"
55+
echo
56+
4957
# Launch R and evaluate the batchtools R job
5058
echo "Rscript -e 'batchtools::doJobCollection()' ..."
5159
echo "- job name: '<%= job.name %>'"

0 commit comments

Comments
 (0)