Skip to content

Commit

Permalink
Fix default number of CPUs available.
Browse files Browse the repository at this point in the history
  • Loading branch information
vathymut committed Jan 17, 2022
1 parent 63153d4 commit ca2d98c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
^NEWS\.md$
^docs$
^README.md$
^README.Rmd$
^README.Rmd$
^CRAN-SUBMISSION$
2 changes: 0 additions & 2 deletions R/rf-helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ classifier_args <- function(data,
probability = TRUE,
write.forest = TRUE,
replace = FALSE,
num.threads = parallel::detectCores() - 1L,
save.memory = FALSE,
respect.unordered.factors = TRUE,
verbose = FALSE,
Expand Down Expand Up @@ -59,7 +58,6 @@ residual_args <- function(data, num_trees = 500L, response_name = "label") {
importance = "none",
write.forest = TRUE,
replace = FALSE,
num.threads = parallel::detectCores() - 1L,
save.memory = FALSE,
respect.unordered.factors = TRUE,
verbose = FALSE,
Expand Down
8 changes: 7 additions & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Test environments
## Resubmission

This is a resubmission. In this version, I changed default argument to satisfy
Julia Haider's request: "Please ensure that you do not use more than 2 cores in
your examples [...]. Please fix and resubmit."

## Test environments

* local Windows 10 x64, R installation, R 4.0.5
* R-hub Ubuntu Linux 20.04.1 LTS, R-release, GCC
Expand Down

0 comments on commit ca2d98c

Please sign in to comment.