detritus check NOTE #653
-
I am using {future.apply} in one of my packages (https://github.com/ropensci/canaper/), and encounter this NOTE when running checks on rhub (Windows Server 2022, R-devel, 64 bit) and CRAN:
My guess is this is being caused by the same thing documented in the thread "R for Windows leaves detritus in the temp directory". Do you know if that was ever corrected or have a solution to it? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This is most likely because there are some left-over background workers still running at the end of If you use (*) This can currently happen in vignettes or package tests, but it looks like it won't happen due to example code, at least not when I've checked via GitHub Actions (https://github.com/HenrikBengtsson/teeny/tree/R_CMD_check/detritus_files). |
Beta Was this translation helpful? Give feedback.
This is most likely because there are some left-over background workers still running at the end of
R CMD check
. This only happens on MS Windows, where clusters can survive the main R session that launched them. You need to test on R-devel (>= 4.3.0) to reproduce this locally.If you use
plan(multisession)
is your vignettes or package tests(*), make sure to stop the parallel workers at the end by callingplan(sequential)
. I've now documented this is https://future.futureverse.org/articles/future-7-for-package-developers.html#making-sure-to-stop-parallel-workers (as well as in https://parallelly.futureverse.org/reference/makeClusterPSOCK.html)(*) This can currently happen in vignettes or …