You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@grantmcdermott suggested improving the importing vignette, by adding a discussion about how to avoid check issues about using too many threads. #5658 (comment)
I would suggest something like:
Add data.table::setDTthreads(1) to the top of your tests/*.R files and also at the top of the \examples section in man/*.Rd files.
The text was updated successfully, but these errors were encountered:
I think adding some nuance for different use cases (examples vs tests vs vignettes) would be helpful. See Jan's original comment here. E.g. For Examples, better to wrap in \dontshow{data.table::setDTthreads(2)}.
Maybe not only \dontshow{setDTthreads(...)} at the beginning, but also \dontshow{setDTthreads(.previously.saved.value); rm(.previously.saved.value)} at the end to minimise the changes to the global state.
@grantmcdermott suggested improving the importing vignette, by adding a discussion about how to avoid check issues about using too many threads. #5658 (comment)
I would suggest something like:
Add
data.table::setDTthreads(1)
to the top of yourtests/*.R
files and also at the top of the\examples
section inman/*.Rd
files.The text was updated successfully, but these errors were encountered: