79211382

Date: 2024-11-21 13:35:55
Score: 1.5
Natty:
Report link

If BLAS threading cannot be controlled and persists with multithreading, consider using explicit parallel processing to ensure proper thread control. For example:

library(parallel)

cl <- makeCluster(1) # Single core

clusterExport(cl, list("explained_variance_aov", "data"))

results <- parLapply(cl, paste0("PC", 1:3000), function(pc) { explained_variance_aov(pc, data, "covar") })

stopCluster(cl)

results <- do.call(rbind, results)

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: wael ltifi