It was discovered during testing that the loess function in the standard sleuth shrinkage estimation function (sleuth:::shrink_df) is set to use all available cores on the machine in the typical setup (OpenMP framework when installing R's internal Fortran and C++ code, no environment variables set). This is solved by setting the environment variable OMP_NUM_THREADS, but most users will not know to do this.
I would advocate for having a mechanism to change this behavior from within sleuth, but it may not be kosher to change environment variables within R. An alternative would be to just provide a warning to the user (though this would come up every time in a standard run).
Issue is set up as an FYI to put in some solution before the next release
It was discovered during testing that the
loess
function in the standard sleuth shrinkage estimation function (sleuth:::shrink_df
) is set to use all available cores on the machine in the typical setup (OpenMP framework when installing R's internal Fortran and C++ code, no environment variables set). This is solved by setting the environment variableOMP_NUM_THREADS
, but most users will not know to do this.I would advocate for having a mechanism to change this behavior from within sleuth, but it may not be kosher to change environment variables within R. An alternative would be to just provide a warning to the user (though this would come up every time in a standard run).
Issue is set up as an FYI to put in some solution before the next release