Skip to content

Commit 8ac7dd4

Browse files
Use utils::osVersion in all HPC examples [ci skip]
1 parent 1a4adf1 commit 8ac7dd4

10 files changed

+44
-32
lines changed

R/batchtools_lsf.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ BatchtoolsLsfFutureBackend <- function(...) {
5050
#'
5151
#' f <- future({
5252
#' data.frame(
53-
#' hostname = Sys.info()[["nodename"]],
54-
#' os = Sys.info()[["sysname"]],
55-
#' cores = unname(parallelly::availableCores()),
56-
#' modules = Sys.getenv("LOADEDMODULES")
53+
#' hostname = Sys.info()[["nodename"]],
54+
#' os = Sys.info()[["sysname"]],
55+
#' osVersion = utils::osVersion,
56+
#' cores = unname(parallelly::availableCores()),
57+
#' modules = Sys.getenv("LOADEDMODULES")
5758
#' )
5859
#' })
5960
#' info <- value(f)

R/batchtools_openlava.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ BatchtoolsOpenLavaFutureBackend <- function(...) {
5050
#'
5151
#' f <- future({
5252
#' data.frame(
53-
#' hostname = Sys.info()[["nodename"]],
54-
#' os = Sys.info()[["sysname"]],
55-
#' cores = unname(parallelly::availableCores()),
56-
#' modules = Sys.getenv("LOADEDMODULES")
53+
#' hostname = Sys.info()[["nodename"]],
54+
#' os = Sys.info()[["sysname"]],
55+
#' osVersion = utils::osVersion,
56+
#' cores = unname(parallelly::availableCores()),
57+
#' modules = Sys.getenv("LOADEDMODULES")
5758
#' )
5859
#' })
5960
#' info <- value(f)

R/batchtools_sge.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ print.BatchtoolsSGEFutureBackend <- function(x, ...) {
6565
#'
6666
#' f <- future({
6767
#' data.frame(
68-
#' hostname = Sys.info()[["nodename"]],
69-
#' os = Sys.info()[["sysname"]],
70-
#' cores = unname(parallelly::availableCores()),
71-
#' modules = Sys.getenv("LOADEDMODULES")
68+
#' hostname = Sys.info()[["nodename"]],
69+
#' os = Sys.info()[["sysname"]],
70+
#' osVersion = utils::osVersion,
71+
#' cores = unname(parallelly::availableCores()),
72+
#' modules = Sys.getenv("LOADEDMODULES")
7273
#' )
7374
#' })
7475
#' info <- value(f)

R/batchtools_slurm.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ print.BatchtoolsSlurmFutureBackend <- function(x, ...) {
134134
#' hostname = Sys.info()[["nodename"]],
135135
#' os = Sys.info()[["sysname"]],
136136
#' osVersion = utils::osVersion,
137-
#' cores = unname(parallelly::availableCores())
137+
#' cores = unname(parallelly::availableCores()),
138+
#' modules = Sys.getenv("LOADEDMODULES")
138139
#' )
139140
#' })
140141
#' info <- value(f)

R/batchtools_torque.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ BatchtoolsTorqueFutureBackend <- function(...) {
4949
#'
5050
#' f <- future({
5151
#' data.frame(
52-
#' hostname = Sys.info()[["nodename"]],
53-
#' os = Sys.info()[["sysname"]],
54-
#' cores = unname(parallelly::availableCores())
52+
#' hostname = Sys.info()[["nodename"]],
53+
#' os = Sys.info()[["sysname"]],
54+
#' osVersion = utils::osVersion,
55+
#' cores = unname(parallelly::availableCores()),
56+
#' modules = Sys.getenv("LOADEDMODULES")
5557
#' )
5658
#' })
5759
#' info <- value(f)

man/batchtools_lsf.Rd

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

man/batchtools_slurm.Rd

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

man/batchtools_torque.Rd

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

0 commit comments

Comments
 (0)