Closed Jiefei-Wang closed 2 years ago
This pull request supports auto export variables/packages from the manager to the worker when FUN in bplapply requires it.
FUN
bplapply
Use case 1
x <- "hello" bplapply(1, function(i) x, BPPARAM = SnowParam(2)) # [[1]] # [1] "hello"
Use case 2
library(S4Vectors) bplapply(1, function(i) DataFrame(), BPPARAM = SnowParam(2)) # [[1]] # DataFrame with 0 rows and 0 columns
I did a minor cleanup to remove the empty lines.
This pull request supports auto export variables/packages from the manager to the worker when
FUN
inbplapply
requires it.Use case 1
Use case 2