@@ -25,61 +25,15 @@ jobs:
25
25
remotes::install_deps(dependencies = TRUE, INSTALL_opts = c("--no-multiarch"))
26
26
shell : Rscript {0}
27
27
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
-
42
28
- name : Install catboost
43
29
run : |
44
30
remotes::install_url("https://github.com/catboost/catboost/releases/download/v0.26/catboost-R-Windows-0.26.tgz", INSTALL_opts = c("--no-multiarch"))
45
31
shell : Rscript {0}
46
32
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}
80
33
- name : Check
81
34
run : rcmdcheck::rcmdcheck(args = c("--no-manual", "--no-multiarch"), error_on = "error", check_dir = "check")
82
35
shell : Rscript {0}
36
+
83
37
- name : Show testthat output
84
38
if : always()
85
39
run : find check -name 'testthat.Rout*' -exec cat '{}' \; || true
0 commit comments