diff --git a/DESCRIPTION b/DESCRIPTION index 251b118..958fd9d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: parallelly -Version: 1.37.1-9000 +Version: 1.37.1-9001 Title: Enhancing the 'parallel' Package Imports: parallel, diff --git a/NEWS.md b/NEWS.md index 6ddc9b8..7d42f75 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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] diff --git a/R/options.R b/R/options.R index ee11350..203c669 100644 --- a/R/options.R +++ b/R/options.R @@ -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). #' #' @@ -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 @@ -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) diff --git a/man/parallelly.options.Rd b/man/parallelly.options.Rd index 0e05c57..924d51d 100644 --- a/man/parallelly.options.Rd +++ b/man/parallelly.options.Rd @@ -173,10 +173,10 @@ The below \R options and environment variables control the default results of \c All of the above \R \verb{parallelly.*} options can be set by corresponding environment variables \env{R_PARALLELLY_*} \emph{when the \pkg{parallelly} package is loaded}. -For example, if \code{R_PARALLELLY_MAKENODEPSOCK_SETUP_STRATEGY = "sequential"}, +For example, if \code{R_PARALLELLY_MAKENODEPSOCK_SETUP_STRATEGY="sequential"}, then option \code{parallelly.makeNodePSOCK.setup_strategy} is set to \code{"sequential"} (character). -Similarly, if \code{R_PARALLELLY_AVAILABLECORES_FALLBACK = "1"}, then option +Similarly, if \code{R_PARALLELLY_AVAILABLECORES_FALLBACK="1"}, then option \code{parallelly.availableCores.fallback} is set to \code{1} (integer). }