Skip to content

Commit

Permalink
by default use as many threads as there are CPUs with data.table
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperSkytte committed May 27, 2022
1 parent 7c1b7e4 commit 1e93a8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
#' @param pkg pkg
#'
#' @importFrom utils packageVersion
#' @importFrom data.table setDTthreads
#' @keywords internal
.onAttach <- function(lib, pkg) {
options(scipen = 6)
setDTthreads(0)
# Check for new github release version. (Not master branch version, release version!)
if (!interactive()) {
return()
Expand Down

0 comments on commit 1e93a8b

Please sign in to comment.