Skip to content

Commit 3c4cbd6

Browse files
Built-in templates: Report on R_LIBS_USER, R_LIBS_SITE, and R_LIBS
1 parent 7203175 commit 3c4cbd6

File tree

13 files changed

+37
-1
lines changed

13 files changed

+37
-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.21.0-9002
2+
Version: 0.21.0-9003
33
Depends:
44
R (>= 3.2.0),
55
parallelly,

inst/templates/bash.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ if ! command -v <%= rscript[1] %> &> /dev/null; then
8686
exit 1
8787
fi
8888
echo "- Rscript version: $(<%= paste(rscript, collapse = " ") %> --version)"
89+
echo "- R_LIBS_USER=${R_LIBS_USER:-<not set>}"
90+
echo "- R_LIBS_SITE=${R_LIBS_SITE:-<not set>}"
91+
echo "- R_LIBS=${R_LIBS:-<not set>}"
8992
echo "- Rscript library paths: $(<%= rscript_call %> -e "cat(shQuote(.libPaths()), sep = ' ')")"
9093
echo
9194

inst/templates/lsf.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ if ! command -v <%= rscript[1] %> &> /dev/null; then
111111
exit 1
112112
fi
113113
echo "- Rscript version: $(<%= paste(rscript, collapse = " ") %> --version)"
114+
echo "- R_LIBS_USER=${R_LIBS_USER:-<not set>}"
115+
echo "- R_LIBS_SITE=${R_LIBS_SITE:-<not set>}"
116+
echo "- R_LIBS=${R_LIBS:-<not set>}"
114117
echo "- Rscript library paths: $(<%= rscript_call %> -e "cat(shQuote(.libPaths()), sep = ' ')")"
115118
echo
116119

inst/templates/openlava.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ if ! command -v <%= rscript[1] %> &> /dev/null; then
111111
exit 1
112112
fi
113113
echo "- Rscript version: $(<%= paste(rscript, collapse = " ") %> --version)"
114+
echo "- R_LIBS_USER=${R_LIBS_USER:-<not set>}"
115+
echo "- R_LIBS_SITE=${R_LIBS_SITE:-<not set>}"
116+
echo "- R_LIBS=${R_LIBS:-<not set>}"
114117
echo "- Rscript library paths: $(<%= rscript_call %> -e "cat(shQuote(.libPaths()), sep = ' ')")"
115118
echo
116119

inst/templates/sge.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ if ! command -v <%= rscript[1] %> &> /dev/null; then
120120
exit 1
121121
fi
122122
echo "- Rscript version: $(<%= paste(rscript, collapse = " ") %> --version)"
123+
echo "- R_LIBS_USER=${R_LIBS_USER:-<not set>}"
124+
echo "- R_LIBS_SITE=${R_LIBS_SITE:-<not set>}"
125+
echo "- R_LIBS=${R_LIBS:-<not set>}"
123126
echo "- Rscript library paths: $(<%= rscript_call %> -e "cat(shQuote(.libPaths()), sep = ' ')")"
124127
echo
125128

inst/templates/slurm.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ if ! command -v <%= rscript[1] %> &> /dev/null; then
110110
exit 1
111111
fi
112112
echo "- Rscript version: $(<%= paste(rscript, collapse = " ") %> --version)"
113+
echo "- R_LIBS_USER=${R_LIBS_USER:-<not set>}"
114+
echo "- R_LIBS_SITE=${R_LIBS_SITE:-<not set>}"
115+
echo "- R_LIBS=${R_LIBS:-<not set>}"
113116
echo "- Rscript library paths: $(<%= rscript_call %> -e "cat(shQuote(.libPaths()), sep = ' ')")"
114117
echo
115118

inst/templates/torque.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ if ! command -v <%= rscript[1] %> &> /dev/null; then
114114
exit 1
115115
fi
116116
echo "- Rscript version: $(<%= paste(rscript, collapse = " ") %> --version)"
117+
echo "- R_LIBS_USER=${R_LIBS_USER:-<n/a>}"
118+
echo "- R_LIBS_SITE=${R_LIBS_SITE:-<n/a>}"
119+
echo "- R_LIBS=${R_LIBS:-<n/a>}"
117120
echo "- Rscript library paths: $(<%= rscript_call %> -e "cat(shQuote(.libPaths()), sep = ' ')")"
118121
echo
119122

man/batchtools_bash.Rd

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

man/batchtools_lsf.Rd

Lines changed: 3 additions & 0 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: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)