Running ‘testthat.R’ [28s/23s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidypredict)
  > 
  > test_check("tidypredict")
  Loading required package: Formula
  Loading required package: plotmo
  Loading required package: plotrix
  Saving _problems/test-model-glmnet-98.R
  Saving _problems/test-model-xgboost-1039.R
  [ FAIL 2 | WARN 8 | SKIP 187 | PASS 569 ]
  
  ══ Skipped tests (187) ═════════════════════════════════════════════════════════
  • On CRAN (85): 'test-model-catboost.R:1094:1', 'test-model-cubist.R:1:1',
    'test-model-cubist.R:41:1', 'test-model-earth.R:1:1',
    'test-model-earth.R:35:1', 'test-model-earth.R:304:1',
    'test-model-earth.R:310:1', 'test-model-earth.R:322:1',
    'test-model-glm.R:1:1', 'test-model-glm.R:39:1', 'test-model-glm.R:85:1',
    'test-model-glm.R:112:1', 'test-model-glmnet.R:1:1',
    'test-model-glmnet.R:34:1', 'test-model-glmnet.R:152:1',
    'test-model-glmnet.R:163:1', 'test-model-glmnet.R:189:1',
    'test-model-glmnet.R:195:1', 'test-model-lightgbm.R:910:1',
    'test-model-lightgbm.R:1217:1', 'test-model-lightgbm.R:1229:1',
    'test-model-lightgbm.R:1242:1', 'test-model-lightgbm.R:1432:1',
    'test-model-lightgbm.R:1896:1', 'test-model-lightgbm.R:1921:1',
    'test-model-lightgbm.R:2028:1', 'test-model-lm.R:1:1',
    'test-model-lm.R:39:1', 'test-model-lm.R:83:1', 'test-model-lm.R:110:1',
    'test-model-partykit.R:1:1', 'test-model-partykit.R:28:1',
    'test-model-partykit.R:100:1', 'test-model-ranger.R:2:3',
    'test-model-ranger.R:32:3', 'test-model-ranger.R:53:3',
    'test-model-ranger.R:74:3', 'test-model-ranger.R:95:3',
    'test-model-ranger.R:116:3', 'test-model-ranger.R:136:3',
    'test-model-ranger.R:155:3', 'test-model-ranger.R:178:1',
    'test-model-ranger.R:185:3', 'test-model-ranger.R:203:3',
    'test-model-ranger.R:226:3', 'test-model-ranger.R:262:3',
    'test-model-ranger.R:287:3', 'test-model-ranger.R:307:1',
    'test-model-ranger.R:314:3', 'test-model-ranger.R:331:3',
    'test-model-ranger.R:383:1', 'test-model-ranger.R:394:3',
    'test-model-ranger.R:426:3', 'test-model-ranger.R:448:3',
    'test-model-ranger.R:470:3', 'test-model-ranger.R:494:3',
    'test-model-ranger.R:529:3', 'test-model-ranger.R:546:3',
    'test-model-ranger.R:569:3', 'test-model-rf.R:1:1', 'test-model-rf.R:34:1',
    'test-model-rf.R:79:1', 'test-model-rf.R:90:1', 'test-model-rf.R:118:1',
    'test-model-rf.R:146:1', 'test-model-rf.R:152:1', 'test-model-rf.R:237:1',
    'test-model-rf.R:243:1', 'test-model-rpart.R:31:1',
    'test-model-rpart.R:54:1', 'test-model-rpart.R:81:1',
    'test-model-rpart.R:90:1', 'test-model-rpart.R:149:1',
    'test-model-rpart.R:153:1', 'test-model-xgboost.R:753:1',
    'test-model-xgboost.R:807:1', 'test-model-xgboost.R:978:1',
    'test-model-xgboost.R:1147:1', 'test-predict-interval.R:22:1',
    'test-tidypredict_test.R:24:1', 'test-tidypredict_test.R:40:1',
    'test-tidypredict_test.R:83:1', 'test-tidypredict_test.R:98:1',
    'test-tidypredict_test.R:116:1', 'test-tree.R:551:1'
  • {catboost} is not installed (81): 'test-model-catboost.R:84:3',
    'test-model-catboost.R:99:3', 'test-model-catboost.R:107:3',
    'test-model-catboost.R:129:3', 'test-model-catboost.R:141:3',
    'test-model-catboost.R:160:3', 'test-model-catboost.R:168:3',
    'test-model-catboost.R:177:3', 'test-model-catboost.R:186:3',
    'test-model-catboost.R:195:3', 'test-model-catboost.R:208:3',
    'test-model-catboost.R:241:3', 'test-model-catboost.R:275:3',
    'test-model-catboost.R:326:3', 'test-model-catboost.R:364:3',
    'test-model-catboost.R:395:3', 'test-model-catboost.R:426:3',
    'test-model-catboost.R:465:3', 'test-model-catboost.R:474:3',
    'test-model-catboost.R:483:3', 'test-model-catboost.R:496:3',
    'test-model-catboost.R:505:3', 'test-model-catboost.R:515:3',
    'test-model-catboost.R:525:3', 'test-model-catboost.R:539:3',
    'test-model-catboost.R:565:3', 'test-model-catboost.R:601:3',
    'test-model-catboost.R:633:3', 'test-model-catboost.R:665:3',
    'test-model-catboost.R:697:3', 'test-model-catboost.R:729:3',
    'test-model-catboost.R:746:3', 'test-model-catboost.R:763:3',
    'test-model-catboost.R:780:3', 'test-model-catboost.R:797:3',
    'test-model-catboost.R:833:3', 'test-model-catboost.R:869:3',
    'test-model-catboost.R:908:3', 'test-model-catboost.R:947:3',
    'test-model-catboost.R:963:3', 'test-model-catboost.R:981:3',
    'test-model-catboost.R:990:3', 'test-model-catboost.R:1014:3',
    'test-model-catboost.R:1025:3', 'test-model-catboost.R:1056:3',
    'test-model-catboost.R:1063:3', 'test-model-catboost.R:1074:3',
    'test-model-catboost.R:1104:3', 'test-model-catboost.R:1121:3',
    'test-model-catboost.R:1141:3', 'test-model-catboost.R:1161:3',
    'test-model-catboost.R:1181:3', 'test-model-catboost.R:1192:3',
    'test-model-catboost.R:1204:3', 'test-model-catboost.R:1216:3',
    'test-model-catboost.R:1233:3', 'test-model-catboost.R:1268:3',
    'test-model-catboost.R:1306:3', 'test-model-catboost.R:1317:3',
    'test-model-catboost.R:1329:3', 'test-model-catboost.R:1340:3',
    'test-model-catboost.R:1351:3', 'test-model-catboost.R:1362:3',
    'test-model-catboost.R:1401:3', 'test-model-catboost.R:1410:3',
    'test-model-catboost.R:1451:3', 'test-model-catboost.R:1493:3',
    'test-model-catboost.R:1535:3', 'test-model-catboost.R:1564:3',
    'test-model-catboost.R:1603:3', 'test-model-catboost.R:1641:3',
    'test-model-catboost.R:1685:3', 'test-model-catboost.R:1723:3',
    'test-model-catboost.R:1758:3', 'test-model-catboost.R:1803:3',
    'test-model-catboost.R:1839:3', 'test-model-catboost.R:1876:3',
    'test-model-catboost.R:1912:3', 'test-model-catboost.R:1956:3',
    'test-tidypredict_test.R:149:3', 'test-tidypredict_test.R:173:3'
  • {dbplyr} is not installed (10): 'test-model-lightgbm.R:924:3',
    'test-model-lightgbm.R:934:3', 'test-model-lightgbm.R:947:3',
    'test-model-lightgbm.R:973:3', 'test-model-lightgbm.R:1186:3',
    'test-model-lightgbm.R:1611:3', 'test-model-xgboost.R:878:3',
    'test-model-xgboost.R:888:3', 'test-model-xgboost.R:901:3',
    'test-model-xgboost.R:928:3'
  • {dbplyr} is not installed. (1): 'test-sql.R:2:3'
  • {parsnip} is not installed (8): 'test-model-lightgbm.R:2034:3',
    'test-model-lightgbm.R:2075:3', 'test-model-lightgbm.R:2112:3',
    'test-model-lightgbm.R:2141:3', 'test-model-xgboost.R:1350:3',
    'test-model-xgboost.R:1385:3', 'test-model-xgboost.R:1415:3',
    'test-model-xgboost.R:1443:3'
  • {parsnip} is not installed. (2): 'test-model-glmnet.R:109:3',
    'test-tidymodels.R:5:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-model-glmnet.R:95:3'): errors if more than 1 penalty is selected ──
  Error in `file("", "w+b")`: cannot open the connection
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(error = TRUE, tidypredict_fit(model)) at test-model-glmnet.R:95:3
   2.   └─testthat:::expect_snapshot_(...)
   3.     ├─testthat:::with_is_snapshotting(...)
   4.     └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
   5.       └─evaluate::evaluate(source, envir = env, new_device = FALSE, output_handler = handler)
   6.         └─evaluate:::watchout(...)
   7.           └─evaluate:::local_persistent_sink_connection(debug, frame)
   8.             └─base::file("", "w+b")
  ── Error ('test-model-xgboost.R:1039:3'): .extract_xgb_trees errors on non-xgb.Booster ──
  Error in `file("", "w+b")`: cannot open the connection
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(.extract_xgb_trees(list()), error = TRUE) at test-model-xgboost.R:1039:3
   2.   └─testthat:::expect_snapshot_(...)
   3.     ├─testthat:::with_is_snapshotting(...)
   4.     └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
   5.       └─evaluate::evaluate(source, envir = env, new_device = FALSE, output_handler = handler)
   6.         └─evaluate:::watchout(...)
   7.           └─evaluate:::local_persistent_sink_connection(debug, frame)
   8.             └─base::file("", "w+b")
  
  [ FAIL 2 | WARN 8 | SKIP 187 | PASS 569 ]
  Error:
  ! Test failures.
  Execution halted