Dear Uwe, thanks for the hint. My cluster is closed after the `foreach`call using `stopCluster()`.
Before, I´ll do the following to init the cluster: *cl <- makeCluster(par.args$par.units, outfile = out.progress)* *registerDoParallel(cl, cores = par.args$par.units)* *foreach()* *stopCluster(cl)* Do you know of any other package which is using foreach in combination with tests and is hosted on Github? So I could compare settings. Best, Patrick 2017-02-02 0:01 GMT+01:00 Uwe Ligges <lig...@statistik.tu-dortmund.de>: > Check whether the parallel cluster is closed. Can it be that the cluster > is still open and the check process waits for them to complete? > > Best, > Uwe Ligges > > > > On 31.01.2017 13:45, Patrick Schratz wrote: > >> Hello, >> >> when running R CMD check / devtools::check, section "running tests..." is >> not finishing (40 min+). >> >> *Checking tests only works:* >> >> *==> Sourcing R files in 'tests' directory* >> >> *testthat results >> ================================================================* >> *OK: 7 SKIPPED: 0 FAILED: 0* >> >> *Tests complete* >> >> >> As well as running tests line-by-line. >> >> How can I debug my tests to discover the problem during R CMD check? >> >> *Tests are using parallelization (foreach + doParallel)* >> >> Best, Patrick >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-package-devel@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-package-devel >> >> [[alternative HTML version deleted]] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel