Skip to content

Commit 07c26da

Browse files
TESTS: Fixing bug in batchtools_custom_local() testing
1 parent f113e56 commit 07c26da

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/zzz,future_lapply.R

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ if (requireNamespace("future.apply", quietly = TRUE)) {
1818
if (fullTest) {
1919
strategies <- c("batchtools_interactive", strategies)
2020

21-
cf <- batchtools::makeClusterFunctionsInteractive(external = TRUE)
2221
batchtools_custom_local <- function(expr, substitute = TRUE,
23-
cluster.functions = cf, ...) {
22+
cluster.functions = batchtools::makeClusterFunctionsInteractive(external = TRUE), ...) {
2423
if (substitute) expr <- substitute(expr)
2524
batchtools_custom(expr, substitute = FALSE, ...,
2625
cluster.functions = cluster.functions)
@@ -43,10 +42,10 @@ if (requireNamespace("future.apply", quietly = TRUE)) {
4342

4443
x <- list(a = "integer", c = "character", c = "list")
4544
str(list(x = x))
46-
45+
4746
y0 <- lapply(x, FUN = vector, length = 2L)
4847
str(list(y0 = y0))
49-
48+
5049
for (strategy in strategies) {
5150
mprintf("- plan('%s') ...\n", strategy)
5251
plan(strategy)

0 commit comments

Comments
 (0)