Skip to content
Prev 9434 / 12125 Next

[R-pkg-devel] Examples are too long in computation for CRAN

On 13.08.2023 08:14, Ivan Krylov wrote:
Good points, not only for examples and tests, but also for defaults.

On shared resources (such as clusters) users may not expect the 
parallelization you use and then overallocate the resources.

Example: 20 cores available to the user who runs makeCluster() for 
paallelization, but the underlying code does multihreading on 20 cores. 
Then we end up in 20*20 threads on the machine slowing down the machine 
and processes of other uers.
Hence, defaults should also not be more than 2. Simply allow the user to 
ask for more.

Best,
Uwe Ligges