[R-pkg-devel] A simple question regarding examples

2023-09-20 Thread Hanyu Song
Hello, I have a simple question about including examples. My code depends on a rarely used Python module, so I am using the @examplesIf tag per Hadley Wickham's advice as follows: #' @examplesIf reticulate::py_module_available('ctef') #' res <- my_func(input1, input2) Unfortunately, my_func r

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