Skip to content

Commit

Permalink
BUG FIX: Environment variable R_PARALLELLY_MAXWORKERS_LOCALHOST was…
Browse files Browse the repository at this point in the history
… interpreted as integers rather than doubles.
  • Loading branch information
HenrikBengtsson committed Mar 22, 2024
1 parent d4b50a0 commit f0d638c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: parallelly
Version: 1.37.1-9000
Version: 1.37.1-9001
Title: Enhancing the 'parallel' Package
Imports:
parallel,
Expand Down
5 changes: 4 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Version (development version)

* ...
## Bug Fixes

* Environment variable `R_PARALLELLY_MAXWORKERS_LOCALHOST` was
interpreted as integers rather than doubles.


# Version 1.37.1 [2024-02-29]
Expand Down
7 changes: 4 additions & 3 deletions R/options.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@
#' All of the above \R `parallelly.*` options can be set by
#' corresponding environment variables \env{R_PARALLELLY_*} _when the
#' \pkg{parallelly} package is loaded_.
#' For example, if `R_PARALLELLY_MAKENODEPSOCK_SETUP_STRATEGY = "sequential"`,
#' For example, if `R_PARALLELLY_MAKENODEPSOCK_SETUP_STRATEGY="sequential"`,
#' then option `parallelly.makeNodePSOCK.setup_strategy` is set to
#' `"sequential"` (character).
#' Similarly, if `R_PARALLELLY_AVAILABLECORES_FALLBACK = "1"`, then option
#' Similarly, if `R_PARALLELLY_AVAILABLECORES_FALLBACK="1"`, then option
#' `parallelly.availableCores.fallback` is set to `1` (integer).
#'
#'
Expand All @@ -140,6 +140,7 @@
#' parallelly.availableWorkers.methods
#' parallelly.availableWorkers.custom
#' parallelly.fork.enable
#' parallelly.maxWorkers.localhost
#' parallelly.supportsMulticore.disableOn
#' parallelly.supportsMulticore.unstable
#' R_PARALLELLY_AVAILABLECORES_FALLBACK
Expand Down Expand Up @@ -310,7 +311,7 @@ update_package_options <- function(debug = FALSE) {

update_package_option("availableWorkers.methods", mode = "character", split = ",", debug = debug)

update_package_option("maxWorkers.localhost", mode = "integer", split = ",", debug = debug)
update_package_option("maxWorkers.localhost", mode = "double", split = ",", debug = debug)
update_package_option("maxWorkers.localhost.ignore", mode = "character", split = ",", debug = debug)

update_package_option("fork.enable", mode = "logical", debug = debug)
Expand Down
4 changes: 2 additions & 2 deletions man/parallelly.options.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f0d638c

Please sign in to comment.