Skip to content

Commit

Permalink
more parallelization in crandep install, try to make it pass
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Dec 3, 2024
1 parent 319cc9b commit 5d2d651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/r_revdepchecks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ jobs:
sh ./build-cran-package.sh
- name: pre-install binary packages
# pre-install all of the dependencies... tools::check_packages_in_dir()
# is hard-coded to compile them all from source
# is hard-coded to compile them all from source, which takes a long time
# (https://github.com/wch/r-source/blob/594b842678e932088b16ec0cd3c39714a141eed9/src/library/tools/R/checktools.R#L295)
run: |
Rscript -e "install.packages('crandep', repos='https://cran.r-project.org')"
Rscript -e "install.packages('crandep', repos='https://cran.r-project.org', Ncpus = parallel::detectCores())"
Rscript ./.ci/download-r-revdeps.R
- name: run revdepchecks
run: |
Expand Down
2 changes: 0 additions & 2 deletions R-package/R/lgb.train.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ lgb.train <- function(params = list(),
reset_data = FALSE,
serializable = TRUE) {

stop("THIS IS AN ERROR FOR TESTING")

# validate inputs early to avoid unnecessary computation
if (nrounds <= 0L) {
stop("nrounds should be greater than zero")
Expand Down

0 comments on commit 5d2d651

Please sign in to comment.