Re: [R-pkg-devel] Checking the number of cores used

2023-09-20 Thread Ivan Krylov
20 сентября 2023 г. 8:27:31 UTC, Shu Fai Cheung пишет: >Third, the "testthat.Rout" file only shows the total time: > >> proc.time() > user system elapsed > 13.530 0.291 29.492 > >I believe the user time is not useful as we can use two processes in >testthat. How can we detect the use of mor

Re: [R-pkg-devel] Checking the number of cores used

2023-09-20 Thread Shu Fai Cheung
Thanks for the suggestion. I will use rhub and a virtual machine to check again. I read some previous posts and I thought I need to check the times to see if there is any unintended usage of parallel processing, e.g., CPU time > 2 x elapsed time. May I ask a few questions on this part? This is fr

Re: [R-pkg-devel] Checking the number of cores used

2023-09-20 Thread Shu Fai Cheung
Thanks a lot. I don't have a physical linux box and so I need to use rhub. But I don't know why there are no "-Ex.timings" files in the check. E.g, check(platform = "debian-gcc-release", show_status = FALSE, check_args = "--as-cran") I can only see these files in artifacts: [ ]00check.log

Re: [R-pkg-devel] Checking the number of cores used

2023-09-19 Thread Duncan Murdoch
Sorry, I missed the --as-cran option: you run R CMD check --as-cran Duncan Murdoch On 19/09/2023 5:59 a.m., Duncan Murdoch wrote: On 18/09/2023 10:10 a.m., Shu Fai Cheung wrote: Hi All, I know we should not use more than 2 cores in tests, vignettes, etc. I encountered and solved this issu

Re: [R-pkg-devel] Checking the number of cores used

2023-09-19 Thread Duncan Murdoch
On 18/09/2023 10:10 a.m., Shu Fai Cheung wrote: Hi All, I know we should not use more than 2 cores in tests, vignettes, etc. I encountered and solved this issue before. However, I still committed this mistake in a new package and would like find out where the cause is. I have a package that alr

Re: [R-pkg-devel] Checking the number of cores used

2023-09-19 Thread Uwe Ligges
On 18.09.2023 16:10, Shu Fai Cheung wrote: Hi All, I know we should not use more than 2 cores in tests, vignettes, etc. I encountered and solved this issue before. However, I still committed this mistake in a new package and would like find out where the cause is. I have a package that alrea

[R-pkg-devel] Checking the number of cores used

2023-09-18 Thread Shu Fai Cheung
Hi All, I know we should not use more than 2 cores in tests, vignettes, etc. I encountered and solved this issue before. However, I still committed this mistake in a new package and would like find out where the cause is. I have a package that already has parallel processing disabled by default a