HenrikBengtsson / future

:rocket: R package: future: Unified Parallel and Distributed Processing in R for Everyone
https://future.futureverse.org
951 stars 83 forks source link

Unexpected value behavior in Reduce #679

Closed bwlewis closed 1 year ago

bwlewis commented 1 year ago

I'm getting some unexpected behavior with value in the current R-devel and the CRAN future version Version: 1.32.0:

library(future)
f <- function(i) future({i})
Reduce(value, Map(f, 1:2))

# Error in if (stdout) { : the condition has length > 1

This error also happens with current released versions of R. I will investigate.


platform       x86_64-pc-linux-gnu
arch           x86_64
os             linux-gnu
system         x86_64, linux-gnu
status         Under development (unstable)
major          4
minor          4.0
year           2023
month          05
day            01
svn rev        84363
language       R
version.string R Under development (unstable) (2023-05-01 r84363)
nickname       Unsuffered Consequences
bwlewis commented 1 year ago

Ignore this, the Reduce does not really make sense here.