futureverse / future.apply

:rocket: R package: future.apply - Apply Function to Elements in Parallel using Futures
https://future.apply.futureverse.org
211 stars 16 forks source link

TESTS: Add test for future_lapply(1, FUN = function(x) a, future.globals = list(a = 42)) #85

Closed HenrikBengtsson closed 3 years ago

HenrikBengtsson commented 3 years ago

From https://github.com/HenrikBengtsson/future/issues/515:

Add test that validates:

library(future.apply)
y <- future_lapply(1, FUN = function(x) a, future.globals = list(a = 42))
stopifnot(y[[1]] == 42)

for all possible backends.