two.step.hybrid.R and semi.sup.R rely on parallel execution with R's parallel package. Instead of exporting individual functions to clusters the whole package is exported (once in two.step.hybrid, 6 times in semi.sup).
clusterEvalQ(cluster, library(recetox.aplcms))
Such an approach requires recetox.aplcms package to be installed prior to testing, which is wrong. The solution would be to register each cluster's individual functions instead of the whole package, e.g., clusterEvalQ(cluster, "adjust.time").
However, that approach distorts cache handling: some cache files won't get written on disk.
The task is to refactor the parallel execution so that two-step-hybrid test passes without having recetox.aplcms package installed.
two.step.hybrid.R and semi.sup.R rely on parallel execution with R's parallel package. Instead of exporting individual functions to clusters the whole package is exported (once in
two.step.hybrid
, 6 times insemi.sup
).Such an approach requires
recetox.aplcms
package to be installed prior to testing, which is wrong. The solution would be to register each cluster's individual functions instead of the whole package, e.g.,clusterEvalQ(cluster, "adjust.time")
. However, that approach distorts cache handling: some cache files won't get written on disk.The task is to refactor the parallel execution so that
two-step-hybrid
test passes without havingrecetox.aplcms
package installed.