Unverified Commit f257636d authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[ci] remove unnecessary R_CHECK_FORCE_SUGGESTS in CI scripts (#3240)

* [ci] remove unnecessary R_CHECK_FORCE_SUGGESTS in CI scripts

* remove unused test data
parent 9d431d12
...@@ -114,9 +114,6 @@ Rscript build_r.R --skip-install || exit -1 ...@@ -114,9 +114,6 @@ Rscript build_r.R --skip-install || exit -1
PKG_TARBALL="lightgbm_${LGB_VER}.tar.gz" PKG_TARBALL="lightgbm_${LGB_VER}.tar.gz"
LOG_FILE_NAME="lightgbm.Rcheck/00check.log" LOG_FILE_NAME="lightgbm.Rcheck/00check.log"
# suppress R CMD check warning from Suggests dependencies not being available
export _R_CHECK_FORCE_SUGGESTS_=0
# fails tests if either ERRORs or WARNINGs are thrown by # fails tests if either ERRORs or WARNINGs are thrown by
# R CMD CHECK # R CMD CHECK
check_succeeded="yes" check_succeeded="yes"
......
...@@ -138,7 +138,6 @@ if ($env:COMPILER -ne "MSVC") { ...@@ -138,7 +138,6 @@ if ($env:COMPILER -ne "MSVC") {
$PKG_FILE_NAME = $PKG_FILE_NAME -replace '[\\]', '/' $PKG_FILE_NAME = $PKG_FILE_NAME -replace '[\\]', '/'
$LOG_FILE_NAME = "lightgbm.Rcheck/00check.log" $LOG_FILE_NAME = "lightgbm.Rcheck/00check.log"
$env:_R_CHECK_FORCE_SUGGESTS_ = 0
Write-Output "Running R CMD check as CRAN" Write-Output "Running R CMD check as CRAN"
Run-R-Code-Redirect-Stderr "result <- processx::run(command = 'R.exe', args = c('CMD', 'check', '--no-multiarch', '--as-cran', '$PKG_FILE_NAME'), echo = TRUE, windows_verbatim_args = FALSE)" ; $check_succeeded = $? Run-R-Code-Redirect-Stderr "result <- processx::run(command = 'R.exe', args = c('CMD', 'check', '--no-multiarch', '--as-cran', '$PKG_FILE_NAME'), echo = TRUE, windows_verbatim_args = FALSE)" ; $check_succeeded = $?
......
...@@ -391,9 +391,7 @@ context("save_model") ...@@ -391,9 +391,7 @@ context("save_model")
test_that("Saving a model with different feature importance types works", { test_that("Saving a model with different feature importance types works", {
set.seed(708L) set.seed(708L)
data(agaricus.train, package = "lightgbm") data(agaricus.train, package = "lightgbm")
data(agaricus.test, package = "lightgbm")
train <- agaricus.train train <- agaricus.train
test <- agaricus.test
bst <- lightgbm( bst <- lightgbm(
data = as.matrix(train$data) data = as.matrix(train$data)
, label = train$label , label = train$label
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment