Running ‘testthat.R’ [37s/46s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(parsnip)
  > 
  > test_check("parsnip")
  
  Attaching package: 'modeldata'
  
  The following object is masked from 'package:datasets':
  
      penguins
  
  
  Attaching package: 'sparklyr'
  
  The following object is masked from 'package:stats':
  
      filter
  
  [ FAIL 3 | WARN 0 | SKIP 208 | PASS 593 ]
  
  ══ Skipped tests (208) ═════════════════════════════════════════════════════════
  • On CRAN (187): 'test-adds.R:16:3', 'test-args_and_modes.R:27:3',
    'test-args_and_modes.R:37:3', 'test-args_and_modes.R:43:3',
    'test-args_and_modes.R:52:3', 'test-args_and_modes.R:112:3',
    'test-arguments.R:5:3', 'test-augment.R:41:3', 'test-augment.R:101:3',
    'test-boost_tree.R:6:3', 'test-boost_tree.R:14:3', 'test-boost_tree.R:40:3',
    'test-boost_tree.R:52:3', 'test-boost_tree_C5.0.R:38:3',
    'test-boost_tree_C5.0.R:123:3', 'test-boost_tree_C5.0.R:143:3',
    'test-boost_tree_xgboost.R:13:3', 'test-boost_tree_xgboost.R:83:3',
    'test-boost_tree_xgboost.R:134:3', 'test-boost_tree_xgboost.R:163:3',
    'test-boost_tree_xgboost.R:195:3', 'test-boost_tree_xgboost.R:231:3',
    'test-boost_tree_xgboost.R:272:3', 'test-boost_tree_xgboost.R:318:3',
    'test-boost_tree_xgboost.R:360:3', 'test-boost_tree_xgboost.R:423:3',
    'test-boost_tree_xgboost.R:471:3', 'test-boost_tree_xgboost.R:502:3',
    'test-boost_tree_xgboost.R:568:3', 'test-boost_tree_xgboost.R:617:3',
    'test-case-weights.R:121:3', 'test-condense_control.R:18:3',
    'test-convert_data.R:280:3', 'test-convert_data.R:333:3',
    'test-convert_data.R:361:3', 'test-convert_data.R:608:3',
    'test-convert_data.R:630:3', 'test-decision_tree.R:6:3',
    'test-decision_tree.R:14:3', 'test-decision_tree.R:40:3',
    'test-descriptors.R:193:3', 'test-descriptors.R:202:3', 'test-engines.R:4:3',
    'test-extract.R:11:3', 'test-extract.R:53:3', 'test-extract.R:64:3',
    'test-extract.R:112:3', 'test-failed_models.R:28:3',
    'test-failed_models.R:47:3', 'test-fit_interfaces.R:31:2',
    'test-fit_interfaces.R:61:3', 'test-fit_interfaces.R:77:3',
    'test-fit_interfaces.R:117:3', 'test-fit_interfaces.R:156:3',
    'test-gen_additive_model.R:21:3', 'test-gen_additive_model.R:64:3',
    'test-linear_reg.R:6:3', 'test-linear_reg.R:14:3', 'test-linear_reg.R:47:3',
    'test-linear_reg.R:130:3', 'test-linear_reg.R:300:3',
    'test-linear_reg.R:309:3', 'test-linear_reg.R:332:3',
    'test-linear_reg.R:342:3', 'test-linear_reg.R:365:3',
    'test-linear_reg.R:396:3', 'test-linear_reg_keras.R:18:3',
    'test-linear_reg_keras.R:83:3', 'test-logistic_reg.R:6:3',
    'test-logistic_reg.R:14:3', 'test-logistic_reg.R:55:3',
    'test-logistic_reg.R:170:3', 'test-logistic_reg.R:252:3',
    'test-logistic_reg.R:294:3', 'test-logistic_reg_keras.R:28:3',
    'test-logistic_reg_keras.R:93:3', 'test-logistic_reg_keras.R:138:3',
    'test-mars.R:8:3', 'test-mars.R:23:3', 'test-mars.R:177:3',
    'test-mars.R:207:3', 'test-misc.R:8:3', 'test-misc.R:63:3',
    'test-misc.R:110:3', 'test-misc.R:151:3', 'test-misc.R:170:3',
    'test-misc.R:178:3', 'test-misc.R:194:3', 'test-misc.R:289:3',
    'test-misc.R:340:3', 'test-mlp.R:4:3', 'test-mlp.R:12:3', 'test-mlp.R:56:3',
    'test-mlp.R:89:3', 'test-mlp_keras.R:15:3', 'test-mlp_keras.R:58:3',
    'test-mlp_keras.R:107:3', 'test-mlp_keras.R:157:3', 'test-mlp_keras.R:183:3',
    'test-mlp_keras.R:216:3', 'test-mlp_keras.R:252:3',
    'test-model_basics.R:2:3', 'test-multinom_reg.R:5:3',
    'test-multinom_reg.R:13:3', 'test-multinom_reg.R:27:3',
    'test-multinom_reg.R:51:3', 'test-multinom_reg_keras.R:26:3',
    'test-multinom_reg_keras.R:91:3', 'test-multinom_reg_keras.R:136:3',
    'test-nearest_neighbor.R:2:3', 'test-nearest_neighbor.R:10:3',
    'test-nullmodel.R:4:3', 'test-nullmodel.R:52:3', 'test-nullmodel.R:134:3',
    'test-packages.R:15:3', 'test-packages.R:45:3', 'test-partykit.R:6:3',
    'test-partykit.R:39:3', 'test-predict_formats.R:120:3',
    'test-predict_formats.R:130:3', 'test-predict_formats.R:157:3',
    'test-print.R:2:3', 'test-print.R:13:3', 'test-rand_forest.R:3:3',
    'test-rand_forest.R:11:3', 'test-rand_forest_ranger.R:29:3',
    'test-rand_forest_ranger.R:153:3', 'test-rand_forest_ranger.R:246:3',
    'test-rand_forest_ranger.R:419:3', 'test-rand_forest_ranger.R:482:3',
    'test-re_registration.R:52:3', 'test-re_registration.R:89:3',
    'test-re_registration.R:132:3', 'test-registration.R:42:1',
    'test-registration.R:51:3', 'test-registration.R:60:3',
    'test-registration.R:77:3', 'test-registration.R:91:3',
    'test-registration.R:148:3', 'test-registration.R:285:3',
    'test-registration.R:427:3', 'test-registration.R:529:3',
    'test-sparsevctrs.R:3:3', 'test-sparsevctrs.R:28:3',
    'test-sparsevctrs.R:35:3', 'test-sparsevctrs.R:61:3',
    'test-sparsevctrs.R:68:3', 'test-sparsevctrs.R:92:3',
    'test-sparsevctrs.R:99:3', 'test-sparsevctrs.R:123:3',
    'test-sparsevctrs.R:161:3', 'test-sparsevctrs.R:196:3',
    'test-sparsevctrs.R:204:3', 'test-sparsevctrs.R:246:3',
    'test-sparsevctrs.R:291:3', 'test-sparsevctrs.R:367:3',
    'test-standalone-survival.R:17:3', 'test-surv_reg.R:4:3',
    'test-surv_reg.R:14:3', 'test-surv_reg.R:21:3',
    'test-surv_reg_survreg.R:35:3', 'test-svm_linear.R:6:3',
    'test-svm_linear.R:14:3', 'test-svm_linear.R:180:3', 'test-svm_poly.R:5:3',
    'test-svm_poly.R:13:3', 'test-svm_rbf.R:8:3', 'test-svm_rbf.R:13:3',
    'test-svm_rbf.R:21:3', 'test-translate.R:30:3', 'test-translate.R:50:3',
    'test-translate.R:67:3', 'test-translate.R:78:3', 'test-translate.R:105:3',
    'test-translate.R:140:3', 'test-translate.R:159:3', 'test-translate.R:180:3',
    'test-translate.R:211:3', 'test-translate.R:225:3', 'test-translate.R:250:3',
    'test-translate.R:263:3', 'test-translate.R:271:3', 'test-translate.R:283:3',
    'test-translate.R:294:3', 'test-translate.R:305:3', 'test-update.R:11:3',
    'test-update.R:33:3'
  • nrow(spark_installed_versions()) == 0 is TRUE (1): 'test-boost_tree.R:24:3'
  • {brulee} is not installed (2): 'test-mlp.R:29:3', 'test-tunable.R:2:3'
  • {flexsurv} is not installed (2): 'test-surv_reg_flexsurv.R:9:3',
    'test-surv_reg_flexsurv.R:45:3'
  • {glmnet} is not installed (1): 'test-sparsevctrs.R:332:3'
  • {kknn} is not installed (4): 'test-nearest_neighbor.R:14:3',
    'test-nearest_neighbor_kknn.R:15:3', 'test-nearest_neighbor_kknn.R:46:3',
    'test-nearest_neighbor_kknn.R:101:3'
  • {nnet} is not installed (9): 'test-mlp_nnet.R:13:3', 'test-mlp_nnet.R:47:3',
    'test-mlp_nnet.R:93:3', 'test-mlp_nnet.R:118:3', 'test-mlp_nnet.R:149:3',
    'test-multinom_reg_nnet.R:22:3', 'test-multinom_reg_nnet.R:61:3',
    'test-multinom_reg_nnet.R:82:3', 'test-multinom_reg_nnet.R:105:3'
  • {quantreg} is not installed (2): 'test-linear_reg_quantreg.R:2:3',
    'test-linear_reg_quantreg.R:55:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-misc.R:160:3'): arguments can be passed to model spec inside function ──
  Error in `fit(., mpg ~ ., data = mtcars)`: Please install the kknn package to use this engine.
  Backtrace:
      ▆
   1. ├─nearest_neighbor(mode = "regression", neighbors = 5) %>% ... at test-misc.R:160:3
   2. ├─generics::fit(., mpg ~ ., data = mtcars)
   3. └─parsnip::fit.model_spec(., mpg ~ ., data = mtcars)
   4.   └─parsnip:::check_installs(object)
   5.     └─cli::cli_abort(...)
   6.       └─rlang::abort(...)
  ── Error ('test-nearest_neighbor_kknn.R:189:3'): argument checks for data dimensions ──
  Error in `fit(., body_mass_g ~ ., data = penguins)`: Please install the kknn package to use this engine.
  Backtrace:
      ▆
   1. ├─spec %>% fit(body_mass_g ~ ., data = penguins)
   2. ├─generics::fit(., body_mass_g ~ ., data = penguins)
   3. └─parsnip::fit.model_spec(., body_mass_g ~ ., data = penguins)
   4.   └─parsnip:::check_installs(object)
   5.     └─cli::cli_abort(...)
   6.       └─rlang::abort(...)
  ── Error ('test-translate.R:195:3'): arguments (nearest_neighbor) ──────────────
  <packageNotFoundError/error/condition>
  Error in `library(pkg, character.only = TRUE, quietly = quiet)`: there is no package called 'kknn'
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(translate_args(basic %>% set_engine("kknn"))) at test-translate.R:195:3
   2.   └─rlang::cnd_signal(state$error)
  
  [ FAIL 3 | WARN 0 | SKIP 208 | PASS 593 ]
  Error: Test failures
  Execution halted