Running 'testthat.R' [20s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(familiar)
  > 
  > suppressWarnings(
  +   testthat::test_check("familiar"),
  +   classes = c("deprecation_warning")
  + )
  Starting 2 test processes.
  Saving _problems/test-sample_weights-4.R
  Saving _problems/test-transformation-9.R
  [ FAIL 2 | WARN 0 | SKIP 72 | PASS 511 ]
  
  ══ Skipped tests (72) ══════════════════════════════════════════════════════════
  • On CRAN (71): 'test-0_plot_calibration.R:3:1', 'test-0_plot_ice_b.R:3:1',
    'test-0_plot_ice_a.R:3:1', 'test-0_plot_sample_clustering_a.R:3:1',
    'test-0_plot_sample_clustering_b.R:3:1',
    'test-0_preprocessing_clustering.R:2:1', 'test-apply.R:2:1',
    'test-as_data_object.R:1:1', 'test-0_vimp_rfsrc_S4.R:8:1',
    'test-batch_normalisation.R:2:1', 'test-collection_labels.R:2:1',
    'test-dynamic_model_loading.R:1:1', 'test-experiment_data.R:2:1',
    'test-experimental_design.R:1:1', 'test-export_calibration_info.R:3:1',
    'test-export_hyperparameters.R:3:1', 'test-export_ice.R:2:1',
    'test-export_prediction_data.R:2:1',
    'test-export_risk_stratification_info.R:2:1',
    'test-export_sample_clustering.R:2:1', 'test-familiar_data_creation.R:2:1',
    'test-function_wrappers.R:1:1', 'test-general_normalisation.R:1:1',
    'test-hyperparameter_optimisation.R:2:1', 'test-imputation.R:2:1',
    'test-learner_cox_s4.R:6:1', 'test-learner_glm_S4.R:6:1',
    'test-learner_glmnet_S4.R:10:1', 'test-learner_mboost_lm_S4.R:5:1',
    'test-learner_mboost_tree_S4.R:5:1', 'test-learner_naive_bayes_S4.R:6:1',
    'test-learner_ranger_s4.R:7:1', 'test-learner_rfsrc_s4.R:7:1',
    'test-learner_survival_regression_S4.R:7:1', 'test-learner_svm_S4.R:11:1',
    'test-learner_knn_S4.R:6:1', 'test-learner_xgboost_dart_S4.R:7:1',
    'test-learner_xgboost_lm_S4.R:7:1', 'test-learner_xgboost_tree_S4.R:7:1',
    'test-metric_auc_roc_S4.R:4:1', 'test-metric_brier_S4.R:4:1',
    'test-metric_concordance_index_S4.R:4:1', 'test-metric_regression_S4.R:6:1',
    'test-metric_confusion_matrix_metrics_S4.R:6:1', 'test-naive_model.R:1:1',
    'test-novelty_none_S4.R:6:1', 'test-novelty_isolation_forest_S4.R:6:1',
    'test-object_conversion.R:2:1', 'test-parallel_backend.R:1:1',
    'test-plot_auc_curves.R:3:1', 'test-plot_confusion_matrix.R:3:1',
    'test-plot_decision_curve.R:3:1', 'test-plot_feature_similarity.R:3:1',
    'test-plot_kaplan_meier_curve.R:3:1', 'test-plot_model_performance.R:3:1',
    'test-plot_model_ranks.R:2:1',
    'test-plot_permutation_variable_importance.R:3:1',
    'test-plot_univariate_importance.R:3:1', 'test-process_time.R:1:1',
    'test-predict.R:3:1', 'test-stratification.R:1:1',
    'test-subsampling_functions.R:2:1', 'test-train_familiar.R:1:1',
    'test-vimp_concordance_S4.R:5:1', 'test-vimp_corelearn_S4.R:11:1',
    'test-vimp_correlation_S4.R:5:1', 'test-vimp_mutual_information_S4.R:7:1',
    'test-vimp_ranger_S4.R:7:1', 'test-vimp_glmnet_S4.R:10:1',
    'test-vimp_regression_S4.R:8:1', 'test-vimp_table.R:1:1'
  • Testing object updates should be done manually. (1):
    'test-update_object.R:1:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-sample_weights.R:4:1'): (code run outside of `test_that()`) ────
  Error in ``[.data.table`(temp_data, , `:=`("series_id", seq_len(.N)), by = c("sample_id", "batch_id"))`: attempt access index 3/3 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─familiar:::test_create_good_data(outcome_type = "binomial") at test-sample_weights.R:4:1
   2.   ├─familiar::as_data_object(...)
   3.   └─familiar::as_data_object(...)
   4.     └─familiar (local) .local(data, ...)
   5.       └─familiar:::.finish_data_preparation(...)
   6.         ├─...[]
   7.         └─data.table:::`[.data.table`(...)
  ── Error ('test-transformation.R:7:3'): (code run outside of `test_that()`) ────
  Error in ``[.data.table`(data, , `:=`("repetition_id", seq_len(.N)), by = c("sample_id", "batch_id", "series_id", outcome_cols))`: attempt access index 9/9 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─familiar:::test_create_synthetic_series_data(...) at test-transformation.R:7:3
   2.   ├─familiar::as_data_object(...)
   3.   └─familiar::as_data_object(...)
   4.     └─familiar (local) .local(data, ...)
   5.       └─familiar:::.finish_data_preparation(...)
   6.         ├─...[]
   7.         └─data.table:::`[.data.table`(...)
  
  [ FAIL 2 | WARN 0 | SKIP 72 | PASS 511 ]
  Error:
  ! Test failures.
  Execution halted