Skip to content

Commit df38fa0

Browse files
Use utils::osVersion instead of /etc/os-release
1 parent 450957b commit df38fa0

File tree

3 files changed

+17
-21
lines changed

3 files changed

+17
-21
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.20.0-9023
2+
Version: 0.20.0-9024
33
Depends:
44
R (>= 3.2.0),
55
parallelly,

R/batchtools_slurm.R

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,11 @@ print.BatchtoolsSlurmFutureBackend <- function(x, ...) {
9898
#' ))
9999
#'
100100
#' f <- future({
101-
#' readRenviron("/etc/os-release")
102101
#' data.frame(
103-
#' hostname = Sys.info()[["nodename"]],
104-
#' os = Sys.info()[["sysname"]],
105-
#' distro = Sys.getenv("PRETTY_NAME"),
106-
#' cores = unname(parallelly::availableCores())
102+
#' hostname = Sys.info()[["nodename"]],
103+
#' os = Sys.info()[["sysname"]],
104+
#' osVersion = utils::osVersion,
105+
#' cores = unname(parallelly::availableCores())
107106
#' )
108107
#' })
109108
#' info <- value(f)
@@ -132,12 +131,11 @@ print.BatchtoolsSlurmFutureBackend <- function(x, ...) {
132131
#' ))
133132
#'
134133
#' f <- future({
135-
#' readRenviron("/etc/os-release")
136134
#' data.frame(
137-
#' hostname = Sys.info()[["nodename"]],
138-
#' os = Sys.info()[["sysname"]],
139-
#' distro = Sys.getenv("PRETTY_NAME"),
140-
#' cores = unname(parallelly::availableCores())
135+
#' hostname = Sys.info()[["nodename"]],
136+
#' os = Sys.info()[["sysname"]],
137+
#' osVersion = utils::osVersion,
138+
#' cores = unname(parallelly::availableCores())
141139
#' )
142140
#' })
143141
#' info <- value(f)

man/batchtools_slurm.Rd

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

0 commit comments

Comments
 (0)