Skip to content

Commit

Permalink
Merge branch 'release/1.33.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Dec 22, 2023
2 parents 4acc94d + f19ac8d commit ac21d01
Show file tree
Hide file tree
Showing 23 changed files with 1,798 additions and 2,241 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- {os: ubuntu-latest, r: 'oldrel' }
- {os: ubuntu-latest, r: 'oldrel-1' }
- {os: ubuntu-latest, r: 'oldrel-2' }
- {os: ubuntu-latest, r: '3.4' }
- {os: ubuntu-latest, r: '3.5' }
- {os: ubuntu-latest, r: 'release' , language: ko, label: ko }
- {os: ubuntu-latest, r: 'release' , language: zh_CN, label: zh_CN }
- {os: ubuntu-latest, r: 'release' , language: zh_TW, label: zh_TW }
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
R_FUTURE_GLOBALS_KEEPWHERE: ${{ matrix.config.globals_keepWhere }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
tryCatch(log("a"), error = conditionMessage)
shell: Rscript {0}

- name: Check (!Windows)
- name: Check
if: runner.os != 'Windows'
env:
## FIXME: Eventually update to 'R_FUTURE_GLOBALS_ONREFERENCE=error'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/covr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
_R_CHECK_CRAN_INCOMING_: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/future_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
R_FUTURE_RNG_ONMISUSE: error

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/revdepcheck-top.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

timeout-minutes: 30

runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

name: ${{ matrix.config.pkg }} (${{ matrix.config.r }}) ${{ matrix.config.label }}

Expand All @@ -29,7 +29,7 @@ jobs:

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
RSPM: https://packagemanager.rstudio.com/cran/__linux__/focal/latest
RSPM: https://packagemanager.rstudio.com/cran/__linux__/jammy/latest
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
## R CMD check
_R_CHECK_LENGTH_1_CONDITION_: true
Expand All @@ -44,7 +44,7 @@ jobs:
NOT_CRAN: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

Expand Down
8 changes: 5 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: future
Version: 1.33.0
Version: 1.33.1
Title: Unified Parallel and Distributed Processing in R for Everyone
Imports:
digest,
Expand All @@ -14,8 +14,10 @@ Suggests:
R.rsp,
markdown
VignetteBuilder: R.rsp
Authors@R: c(person("Henrik", "Bengtsson", role=c("aut", "cre", "cph"),
email = "[email protected]"))
Authors@R: c(person("Henrik", "Bengtsson",
role = c("aut", "cre", "cph"),
email = "[email protected]",
comment = c(ORCID = "0000-0002-7579-5165")))
Description: The purpose of this package is to provide a lightweight and
unified Future API for sequential and parallel processing of R
expression via futures. The simplest way to evaluate an expression
Expand Down
11 changes: 11 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Version 1.33.1 [2023-12-21]

## Bug Fixes

* `getExpression()` on 'cluster' future could under some
circumstances call `local()` on the global search path rather than
`base::local()` as intended. For example, if a package that
exports its own `local()` function was attached, then that would be
called instead, often leading to a hard to troubleshoot error.


# Version 1.33.0 [2023-07-01]

## New Features
Expand Down
2 changes: 1 addition & 1 deletion R/ClusterFuture-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ requestNode <- function(await, workers, timeout = getOption("future.wait.timeout
#' @export
getExpression.ClusterFuture <- local({
tmpl_expr_conditions <- bquote_compile({
...future.makeSendCondition <- local({
...future.makeSendCondition <- base::local({
sendCondition <- NULL

function(frame = 1L) {
Expand Down
7 changes: 5 additions & 2 deletions R/futureSessionInfo.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ futureSessionInfo <- function(test = TRUE, anonymize = TRUE) {
mprint0 <- function(...) mprint(..., prefix = NULL, debug = TRUE)
mprintf0 <- function(...) mdebugf(..., prefix = NULL, debug = TRUE)
mstr0 <- function(...) mstr(..., prefix = NULL, debug = TRUE)

message("*** Package versions")
p <- c("future", "parallelly", "parallel", "globals", "listenv")
v <- vapply(p, FUN = function(pkg) {
Expand Down Expand Up @@ -93,11 +93,14 @@ futureSessionInfo <- function(test = TRUE, anonymize = TRUE) {
if (anonymize) vs <- anonymize_info(vs)
message("Main R session details:")
mprint0(vs)


delay <- getOption("future.futureSessionInfo.delay", 1.0) ## seconds

## Information on the workers
fs <- list()
for (ii in seq_len(nbrOfWorkers())) {
fs[[ii]] <- future({
Sys.sleep(delay)
data.frame(
worker = ii,
pid = Sys.getpid(),
Expand Down
49 changes: 34 additions & 15 deletions R/mandelbrot.R
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
#' Mandelbrot convergence counts
#'
#' @param Z A complex matrix for which convergence
#' counts should be calculated.
#' @param xmid,ymid,side,resolution Alternative specification of
#' the complex plane `Z`, where
#' `mean(Re(Z)) == xmid`,
#' `mean(Im(Z)) == ymid`,
#' `diff(range(Re(Z))) == side`,
#' `diff(range(Im(Z))) == side`, and
#' `dim(Z) == c(resolution, resolution)`.
#' @param maxIter Maximum number of iterations per bin.
#' @param tau A threshold; the radius when calling
#' divergence (Mod(z) > tau).
#'
#' @return Returns an integer matrix (of class Mandelbrot) with
#' non-negative counts.
#'
Expand All @@ -32,11 +19,29 @@
#' from ftp://stat.ethz.ch/U/maechler/R/ on 2005-02-18 (sic!).
#'
#' @aliases as.raster.Mandelbrot plot.Mandelbrot mandelbrot_tiles
#' @export
#'
#' @keywords internal
#'
#' @export
mandelbrot <- function(...) UseMethod("mandelbrot")


#' @param Z A complex matrix for which convergence
#' counts should be calculated.
#'
#' @param maxIter Maximum number of iterations per bin.
#'
#' @param tau A threshold; the radius when calling
#' divergence (Mod(z) > tau).
#'
#' @param xmid,ymid,side,resolution Alternative specification of
#' the complex plane `Z`, where
#' `mean(Re(Z)) == xmid`,
#' `mean(Im(Z)) == ymid`,
#' `diff(range(Re(Z))) == side`,
#' `diff(range(Im(Z))) == side`, and
#' `dim(Z) == c(resolution, resolution)`.
#'
#' @rdname mandelbrot
#' @export
mandelbrot.matrix <- function(Z, maxIter = 200L, tau = 2.0, ...) {
stop_if_not(is.matrix(Z), mode(Z) == "complex")
Expand Down Expand Up @@ -82,6 +87,20 @@ mandelbrot.matrix <- function(Z, maxIter = 200L, tau = 2.0, ...) {
}


#' @param xmid,ymid,side,resolution Alternative specification of
#' the complex plane `Z`, where
#' `mean(Re(Z)) == xmid`,
#' `mean(Im(Z)) == ymid`,
#' `diff(range(Re(Z))) == side`,
#' `diff(range(Im(Z))) == side`, and
#' `dim(Z) == c(resolution, resolution)`.
#'
#' @param maxIter Maximum number of iterations per bin.
#'
#' @param tau A threshold; the radius when calling
#' divergence (Mod(z) > tau).
#'
#' @rdname mandelbrot
#' @export
mandelbrot.numeric <- function(xmid = -0.75, ymid = 0.0, side = 3.0,
resolution = 400L, maxIter = 200L,
Expand Down
2 changes: 1 addition & 1 deletion R/resolved.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' Check whether a future is resolved or not
#'
#' @param x A \link{Future}, a list, or an environment (which also
#' includes \link[listenv:listenv]{list environment}.
#' includes \link[listenv:listenv]{list environment}).
#'
#' @param \dots Not used.
#'
Expand Down
2 changes: 1 addition & 1 deletion R/zzz.plan.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#' @section Built-in evaluation strategies:
#' The \pkg{future} package provides the following built-in backends:
#'
#' \itemize{
#' \describe{
#' \item{[`sequential`]:}{
#' Resolves futures sequentially in the current \R process, e.g.
#' `plan(sequential)`.
Expand Down
46 changes: 21 additions & 25 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# CRAN submission future 1.33.0
# CRAN submission future 1.33.1

on 2023-07-01
on 2023-12-21

I've checked this version towards 292 reverse package dependencies available on CRAN (n = 273) and Bioconductor (n = 19).
## Notes sent to CRAN

This submission breaks five (n = 5) CRAN packages: disk.frame (ERROR), jstor (WARNING), metabolomicsR(WARNING), tcplfit2 (WARNING), and TSstudio (WARNING). This is because they depend on a function that has been deprecated since 2020. The maintainers have been notified well in advance and multiple times. They have been reminded about since at least 2023-04-04 and some even since 2021.

Thank you
Thanks in advance


## Notes not sent to CRAN
Expand All @@ -18,9 +16,8 @@ The package has been verified using `R CMD check --as-cran` on:
| R version | GitHub | R-hub | mac/win-builder |
| --------- | ------ | ------ | --------------- |
| 3.5.x | L | | |
| 3.6.x | L | | |
| 4.1.x | L | | |
| 4.2.x | L M W | L W | M1 W |
| 4.2.x | L M W | L W | |
| 4.3.x | L M W | L W | M1 W |
| devel | L M W | L | W |

Expand All @@ -34,7 +31,6 @@ res <- rhub::check(platforms = c(
"debian-clang-devel",
"fedora-gcc-devel",
"debian-gcc-patched",
# "macos-highsierra-release-cran",
"windows-x86_64-release"
))
print(res)
Expand All @@ -43,39 +39,39 @@ print(res)
gives

```
── future 1.32.0-9115: OK
── future 1.33.1: OK
Build ID: future_1.32.0-9115.tar.gz-ada9133dcbd34b03899066463a021e9b
Build ID: future_1.33.1.tar.gz-2f034a059c5d407aa6167d7fbe0ee504
Platform: Debian Linux, R-devel, clang, ISO-8859-15 locale
Submitted: 14m 32.1s ago
Build time: 14m 28.2s
Submitted: 45m 55.3s ago
Build time: 41m 47.9s
0 errors ✔ | 0 warnings ✔ | 0 notes ✔
── future 1.32.0-9115: OK
── future 1.33.1: OK
Build ID: future_1.32.0-9115.tar.gz-0411c118672a4fb98da3fc376f3507e6
Build ID: future_1.33.1.tar.gz-f385f4998fac446bb0e2c5efc02f36d3
Platform: Fedora Linux, R-devel, GCC
Submitted: 14m 32.1s ago
Build time: 11m 26.2s
Submitted: 45m 55.3s ago
Build time: 28m 25.3s
0 errors ✔ | 0 warnings ✔ | 0 notes ✔
── future 1.32.0-9115: OK
── future 1.33.1: OK
Build ID: future_1.32.0-9115.tar.gz-a000c2b84c26406b8269f27f8bcddc73
Build ID: future_1.33.1.tar.gz-5e83389a128540c48a35112d8f06810c
Platform: Debian Linux, R-patched, GCC
Submitted: 14m 32.1s ago
Build time: 13m 45.6s
Submitted: 45m 55.3s ago
Build time: 39m 28.8s
0 errors ✔ | 0 warnings ✔ | 0 notes ✔
── future 1.32.0-9115: OK
── future 1.33.1: OK
Build ID: future_1.32.0-9115.tar.gz-fa49907794cd48558b6d7a111fa544ee
Build ID: future_1.33.1.tar.gz-121079216c7b4f02a6ae2aceb1c2ba0b
Platform: Windows Server 2022, R-release, 32/64 bit
Submitted: 14m 32.1s ago
Build time: 7m 17.7s
Submitted: 45m 55.3s ago
Build time: 6m 57.4s
0 errors ✔ | 0 warnings ✔ | 0 notes ✔
```
2 changes: 2 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -488,3 +488,5 @@ XMLInternalNode
xmlParse
xmlSerializeHook
xyz
adam
pred
24 changes: 19 additions & 5 deletions man/mandelbrot.Rd

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

2 changes: 1 addition & 1 deletion man/plan.Rd

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

2 changes: 1 addition & 1 deletion man/resolved.Rd

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

Loading

0 comments on commit ac21d01

Please sign in to comment.