@@ -9,8 +9,8 @@ hpc_xgboost <-
99# ------------------------------------------------------------------------------
1010
1111test_that(' xgboost execution, classification' , {
12-
1312 skip_if_not_installed(" xgboost" )
13+ skip_on_cran()
1414
1515 ctrl $ verbosity <- 0L
1616
@@ -80,6 +80,7 @@ test_that('xgboost execution, classification', {
8080test_that(' xgboost classification prediction' , {
8181
8282 skip_if_not_installed(" xgboost" )
83+ skip_on_cran()
8384
8485 library(xgboost )
8586
@@ -130,6 +131,7 @@ bad_rf_reg <-
130131test_that(' xgboost execution, regression' , {
131132
132133 skip_if_not_installed(" xgboost" )
134+ skip_on_cran()
133135
134136 ctrl $ verbosity <- 0L
135137
@@ -158,6 +160,7 @@ test_that('xgboost execution, regression', {
158160test_that(' xgboost regression prediction' , {
159161
160162 skip_if_not_installed(" xgboost" )
163+ skip_on_cran()
161164
162165 ctrl $ verbosity <- 0L
163166
@@ -189,6 +192,7 @@ test_that('xgboost regression prediction', {
189192
190193test_that(' xgboost alternate objective' , {
191194 skip_if_not_installed(" xgboost" )
195+ skip_on_cran()
192196
193197 ctrl $ verbosity <- 0L
194198
@@ -224,6 +228,7 @@ test_that('xgboost alternate objective', {
224228test_that(' submodel prediction' , {
225229
226230 skip_if_not_installed(" xgboost" )
231+ skip_on_cran()
227232
228233 ctrl $ verbosity <- 0L
229234
@@ -264,6 +269,7 @@ test_that('submodel prediction', {
264269
265270test_that(' validation sets' , {
266271 skip_if_not_installed(" xgboost" )
272+ skip_on_cran()
267273
268274 ctrl $ verbosity <- 0L
269275
@@ -309,6 +315,7 @@ test_that('validation sets', {
309315
310316test_that(' early stopping' , {
311317 skip_if_not_installed(" xgboost" )
318+ skip_on_cran()
312319
313320 ctrl $ verbosity <- 0L
314321
@@ -350,6 +357,7 @@ test_that('early stopping', {
350357
351358test_that(' xgboost data conversion' , {
352359 skip_if_not_installed(" xgboost" )
360+ skip_on_cran()
353361
354362 mtcar_x <- mtcars [, - 1 ]
355363 mtcar_mat <- as.matrix(mtcar_x )
@@ -412,6 +420,7 @@ test_that('xgboost data conversion', {
412420
413421test_that(' xgboost data and sparse matrices' , {
414422 skip_if_not_installed(" xgboost" )
423+ skip_on_cran()
415424
416425 ctrl $ verbosity <- 0L
417426
@@ -459,6 +468,7 @@ test_that('xgboost data and sparse matrices', {
459468test_that(' argument checks for data dimensions' , {
460469
461470 skip_if_not_installed(" xgboost" )
471+ skip_on_cran()
462472
463473 ctrl $ verbosity <- 0L
464474
@@ -489,6 +499,7 @@ test_that('argument checks for data dimensions', {
489499test_that(" fit and prediction with `event_level`" , {
490500
491501 skip_if_not_installed(" xgboost" )
502+ skip_on_cran()
492503
493504 ctrl $ verbosity <- 0L
494505
@@ -554,6 +565,7 @@ test_that("fit and prediction with `event_level`", {
554565
555566test_that(" count/proportion parameters" , {
556567 skip_if_not_installed(" xgboost" )
568+ skip_on_cran()
557569
558570 ctrl $ verbosity <- 0L
559571
@@ -602,6 +614,7 @@ test_that("count/proportion parameters", {
602614test_that(' interface to param arguments' , {
603615 skip_if_not_installed(" xgboost" )
604616 skip_on_os(" windows" ) # some snapshots different on windows (added spaces)
617+ skip_on_cran()
605618
606619 ctrl $ verbosity <- 0L
607620
0 commit comments