Skip to content

Commit c872c42

Browse files
committed
use CRAN's lightgbm
1 parent 490a3aa commit c872c42

File tree

1 file changed

+1
-47
lines changed

1 file changed

+1
-47
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -25,61 +25,15 @@ jobs:
2525
remotes::install_deps(dependencies = TRUE, INSTALL_opts = c("--no-multiarch"))
2626
shell: Rscript {0}
2727

28-
- name: Remove lightgbm
29-
run: |
30-
remove.packages("lightgbm")
31-
shell: Rscript {0}
32-
33-
- name: Install dev lightgbm
34-
run: |
35-
cd ..
36-
git clone --recursive https://github.com/microsoft/LightGBM.git --branch fix/network-setup
37-
cd LightGBM
38-
sh build-cran-package.sh
39-
Rscript -e "install.packages(c('R6', 'data.table', 'jsonlite'))"
40-
Rscript -e "install.packages('lightgbm_3.2.1.99.tar.gz', repos = NULL, type='source')"
41-
4228
- name: Install catboost
4329
run: |
4430
remotes::install_url("https://github.com/catboost/catboost/releases/download/v0.26/catboost-R-Windows-0.26.tgz", INSTALL_opts = c("--no-multiarch"))
4531
shell: Rscript {0}
4632

47-
- name: catboost and lightgbm
48-
run: |
49-
library(lightgbm)
50-
data(agaricus.train, package='lightgbm')
51-
print(sessionInfo())
52-
train <- agaricus.train
53-
dtrain <- lgb.Dataset(train$data, label = train$label)
54-
model <- lgb.cv(
55-
params = list(
56-
objective = "regression"
57-
, metric = "l2"
58-
)
59-
, data = dtrain
60-
)
61-
shell: Rscript {0}
62-
63-
- name: catboost and lightgbm
64-
run: |
65-
library(parsnip)
66-
library(lightgbm)
67-
data(agaricus.train, package='lightgbm')
68-
print(sessionInfo())
69-
train <- agaricus.train
70-
dtrain <- lgb.Dataset(train$data, label = train$label)
71-
model <- lgb.cv(
72-
params = list(
73-
objective = "regression"
74-
, metric = "l2"
75-
)
76-
, data = dtrain
77-
)
78-
79-
shell: Rscript {0}
8033
- name: Check
8134
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--no-multiarch"), error_on = "error", check_dir = "check")
8235
shell: Rscript {0}
36+
8337
- name: Show testthat output
8438
if: always()
8539
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true

0 commit comments

Comments
 (0)