@@ -3,17 +3,7 @@ library("listenv")
33
44if (requireNamespace(" future.apply" , quietly = TRUE )) {
55 future_lapply <- future.apply :: future_lapply
6-
7- cf <- batchtools :: makeClusterFunctionsInteractive(external = TRUE )
8- batchtools_custom_local <- function (expr , substitute = TRUE ,
9- cluster.functions = cf , ... ) {
10- if (substitute ) expr <- substitute(expr )
11- batchtools_custom(expr , substitute = FALSE , ... ,
12- cluster.functions = cluster.functions )
13- }
14- class(batchtools_custom_local ) <- c(" batchtools_custom_local" ,
15- class(batchtools_custom ))
16-
6+
177 message(" All HPC strategies:" )
188 strategies <- c(" batchtools_lsf" , " batchtools_openlava" , " batchtools_sge" ,
199 " batchtools_slurm" , " batchtools_torque" )
@@ -22,10 +12,25 @@ if (requireNamespace("future.apply", quietly = TRUE)) {
2212 message(" Supported HPC strategies:" )
2313 strategies <- strategies [sapply(strategies , FUN = test_strategy )]
2414 mprint(strategies )
15+
16+ strategies <- c(" batchtools_local" , strategies )
17+
18+ if (fullTest ) {
19+ strategies <- c(" batchtools_interactive" , strategies )
20+
21+ cf <- batchtools :: makeClusterFunctionsInteractive(external = TRUE )
22+ batchtools_custom_local <- function (expr , substitute = TRUE ,
23+ cluster.functions = cf , ... ) {
24+ if (substitute ) expr <- substitute(expr )
25+ batchtools_custom(expr , substitute = FALSE , ... ,
26+ cluster.functions = cluster.functions )
27+ }
28+ class(batchtools_custom_local ) <- c(" batchtools_custom_local" ,
29+ class(batchtools_custom ))
30+ strategies <- c(" batchtools_custom_local" , strategies )
31+ }
2532
2633 message(" Strategies to test with:" )
27- strategies <- c(" batchtools_interactive" , " batchtools_local" ,
28- " batchtools_custom_local" , strategies )
2934 mprint(strategies )
3035
3136
0 commit comments