R Under development (unstable) (2024-10-11 r87227 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # On cran, all code may only use 2 threads. > # For some reason, threads=2 and threads=1 still results in "Running R code in ‘testthat.R’ had CPU time 3.2 (2.8) times elapsed time" > # Therefore set to single threaded (same as Win) and also set threads for openMP. > # As per the example in https://github.com/Rdatatable/data.table/issues/5658#issuecomment-1741934995, this is done before loading any packages > # check for cran is from testthat:::on_cran() > if(!identical(Sys.getenv("NOT_CRAN"), "true")){ + Sys.setenv("OMP_THREAD_LIMIT" = 1) + data.table::setDTthreads(threads = 1) + } > > library("testthat") > library("lubridate") Attaching package: 'lubridate' The following objects are masked from 'package:base': date, intersect, setdiff, union > library("data.table") Attaching package: 'data.table' The following objects are masked from 'package:lubridate': hour, isoweek, mday, minute, month, quarter, second, wday, week, yday, year > library("CLVTools") > > > test_check("CLVTools") The time of day stored in the provided data (of type POSIXct) is ignored (cut off). The time of day stored in the provided data (of type POSIXct) is ignored (cut off). The time of day stored in the provided data (of type POSIXct) is ignored (cut off). The time of day stored in the provided data (of type POSIXct) is ignored (cut off). The time of day stored in the provided data (of type POSIXct) is ignored (cut off). The time of day stored in the provided data (of type POSIXct) is ignored (cut off). The time of day stored in the provided data (of type POSIXct) is ignored (cut off). The time of day stored in the provided data (of type POSIXct) is ignored (cut off). The time of day stored in the provided data (of type POSIXct) is ignored (cut off). The time of day stored in the provided data (of type POSIXct) is ignored (cut off). The time of day stored in the provided data (of type POSIXct) is ignored (cut off). The time of day stored in the provided data (of type POSIXct) is ignored (cut off). The time of day stored in the provided data (of type POSIXct) is ignored (cut off). The time of day stored in the provided data (of type POSIXct) is ignored (cut off). The time of day stored in the provided data (of type POSIXct) is ignored (cut off). The time of day stored in the provided data (of type POSIXct) is ignored (cut off). The time of day stored in the provided data (of type POSIXct) is ignored (cut off). [ FAIL 0 | WARN 0 | SKIP 222 | PASS 1518 ] ══ Skipped tests (222) ═════════════════════════════════════════════════════════ • On CRAN (222): 'test_consistency_bgnbd.R:1:1', 'test_consistency_ggomnbd.R:1:1', 'test_consistency_pnbd.R:1:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:5:1', 'test_correctness_bgnbd.R:17:1', 'test_correctness_bgnbd.R:24:3', 'test_correctness_bgnbd.R:51:3', 'test_correctness_bootstrapping.R:1:1', 'test_correctness_clvdata_clvdata.R:13:3', 'test_correctness_clvdata_clvdata.R:91:3', 'test_correctness_clvdata_clvdata.R:119:3', 'test_correctness_clvdata_clvdata.R:156:3', 'test_correctness_clvdata_clvdata.R:169:3', 'test_correctness_clvdata_clvdata.R:191:3', 'test_correctness_clvdata_clvdata.R:211:3', 'test_correctness_clvdata_clvdata.R:223:3', 'test_correctness_clvdata_clvdata.R:238:3', 'test_correctness_clvdata_clvdata.R:248:3', 'test_correctness_clvdata_clvdata.R:260:3', 'test_correctness_clvdata_clvdata.R:393:3', 'test_correctness_clvdata_s3.R:6:3', 'test_correctness_clvdata_s3.R:61:3', 'test_correctness_clvdata_s3.R:71:3', 'test_correctness_clvdata_s3.R:83:3', 'test_correctness_clvdata_s3.R:94:3', 'test_correctness_clvdata_s3.R:102:3', 'test_correctness_clvdata_s3.R:114:3', 'test_correctness_clvdata_s3.R:126:3', 'test_correctness_clvdata_s3.R:145:3', 'test_correctness_clvdata_s3.R:174:3', 'test_correctness_clvdata_s3.R:236:3', 'test_correctness_clvdata_s3.R:247:3', 'test_correctness_clvdata_s3.R:256:3', 'test_correctness_clvdata_s3.R:274:3', 'test_correctness_clvdata_s3.R:289:3', 'test_correctness_clvdata_s3.R:310:3', 'test_correctness_clvdata_s3.R:328:3', 'test_correctness_clvdata_s3.R:345:3', 'test_correctness_clvdata_s3.R:366:3', 'test_correctness_clvdata_setdynamiccov.R:64:3', 'test_correctness_clvdata_setdynamiccov.R:103:3', 'test_correctness_clvdata_setdynamiccov.R:129:3', 'test_correctness_clvdata_setdynamiccov.R:157:3', 'test_correctness_clvdata_setdynamiccov.R:189:3', 'test_correctness_clvdata_setdynamiccov.R:218:3', 'test_correctness_clvdata_setdynamiccov.R:252:3', 'test_correctness_clvdata_setdynamiccov.R:278:3', 'test_correctness_clvdata_setstaticcov.R:51:3', 'test_correctness_clvdata_setstaticcov.R:92:3', 'test_correctness_clvdata_setstaticcov.R:107:3', 'test_correctness_clvdata_setstaticcov.R:124:3', 'test_correctness_clvdata_setstaticcov.R:138:3', 'test_correctness_clvdata_setstaticcov.R:152:3', 'test_correctness_clvdata_setstaticcov.R:165:3', 'test_correctness_clvdata_setstaticcov.R:181:3', 'test_correctness_clvdata_setstaticcov.R:205:3', 'test_correctness_dynamiccov_walkcreation.R:1:1', 'test_correctness_gg.R:5:1', 'test_correctness_gg.R:5:1', 'test_correctness_gg.R:5:1', 'test_correctness_gg.R:5:1', 'test_correctness_gg.R:5:1', 'test_correctness_gg.R:5:1', 'test_correctness_gg.R:5:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:7:1', 'test_correctness_ggomnbd.R:19:1', 'test_correctness_ggomnbd.R:91:3', 'test_correctness_ggomnbd.R:109:3', 'test_correctness_latentattrition.R:1:1', 'test_correctness_pnbd_dyncov.R:1:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:5:1', 'test_correctness_pnbd_nocovstaticcov.R:18:1', 'test_correctness_pnbd_nocovstaticcov.R:45:3', 'test_correctness_pnbd_nocovstaticcov.R:60:3', 'test_correctness_pnbd_nocovstaticcov.R:83:3', 'test_correctness_spending.R:1:1', 'test_inputchecks_bgnbd_nocov.R:13:1', 'test_inputchecks_bgnbd_nocov.R:13:1', 'test_inputchecks_bgnbd_nocov.R:13:1', 'test_inputchecks_bgnbd_nocov.R:13:1', 'test_inputchecks_bgnbd_nocov.R:13:1', 'test_inputchecks_bgnbd_nocov.R:13:1', 'test_inputchecks_bgnbd_nocov.R:13:1', 'test_inputchecks_bgnbd_staticcov.R:1:1', 'test_inputchecks_clvdata_clvdata.R:1:1', 'test_inputchecks_clvdata_plot.R:1:1', 'test_inputchecks_clvdata_setdynamiccov.R:1:1', 'test_inputchecks_gg.R:11:1', 'test_inputchecks_gg.R:11:1', 'test_inputchecks_gg.R:11:1', 'test_inputchecks_gg.R:11:1', 'test_inputchecks_gg.R:11:1', 'test_inputchecks_gg.R:11:1', 'test_inputchecks_gg.R:11:1', 'test_inputchecks_gg.R:11:1', 'test_inputchecks_ggomnbd_nocov.R:16:1', 'test_inputchecks_ggomnbd_nocov.R:16:1', 'test_inputchecks_ggomnbd_nocov.R:16:1', 'test_inputchecks_ggomnbd_nocov.R:16:1', 'test_inputchecks_ggomnbd_nocov.R:16:1', 'test_inputchecks_ggomnbd_nocov.R:16:1', 'test_inputchecks_ggomnbd_nocov.R:16:1', 'test_inputchecks_ggomnbd_staticcov.R:1:1', 'test_inputchecks_latentattrition.R:1:1', 'test_inputchecks_newcustomer.R:1:1', 'test_inputchecks_plot_spending.R:1:1', 'test_inputchecks_plot_transactions.R:166:1', 'test_inputchecks_pmf.R:1:1', 'test_inputchecks_pnbd_nocov.R:8:1', 'test_inputchecks_pnbd_nocov.R:8:1', 'test_inputchecks_pnbd_nocov.R:8:1', 'test_inputchecks_pnbd_nocov.R:8:1', 'test_inputchecks_pnbd_nocov.R:8:1', 'test_inputchecks_pnbd_nocov.R:8:1', 'test_inputchecks_pnbd_nocov.R:8:1', 'test_inputchecks_pnbd_staticcov.R:1:1', 'test_inputchecks_predict_spending.R:26:3', 'test_inputchecks_predict_spending.R:29:3', 'test_inputchecks_predict_transactions.R:114:3', 'test_inputchecks_predict_transactions.R:115:3', 'test_inputchecks_predict_transactions.R:118:3', 'test_inputchecks_predict_transactions.R:127:3', 'test_inputchecks_predict_transactions.R:129:3', 'test_inputchecks_predict_transactions.R:132:3', 'test_inputchecks_predict_transactions.R:132:3', 'test_inputchecks_predict_transactions.R:132:3', 'test_inputchecks_predict_transactions.R:132:3', 'test_inputchecks_predict_transactions.R:12:5', 'test_inputchecks_predict_transactions.R:36:5', 'test_inputchecks_predict_transactions.R:59:5', 'test_inputchecks_predict_transactions.R:87:5', 'test_inputchecks_predict_transactions.R:141:3', 'test_inputchecks_predict_transactions.R:3:5', 'test_inputchecks_spending.R:1:1', 'test_runability_bgnbd_nocov.R:1:1', 'test_runability_bgnbd_staticcov.R:1:1', 'test_runability_bootstrapping.R:1:1', 'test_runability_clvdata_clvdata.R:10:3', 'test_runability_clvdata_clvdata.R:16:3', 'test_runability_clvdata_clvdata.R:26:3', 'test_runability_clvdata_clvdata.R:44:3', 'test_runability_clvdata_clvdata.R:54:3', 'test_runability_clvdata_clvdata.R:67:3', 'test_runability_clvdata_clvdata.R:89:3', 'test_runability_clvdata_clvdata.R:102:3', 'test_runability_clvdata_clvdata.R:115:3', 'test_runability_clvdata_clvdata.R:171:3', 'test_runability_clvdata_clvdata.R:185:3', 'test_runability_clvdata_clvdata.R:195:3', 'test_runability_clvdata_clvdata.R:207:3', 'test_runability_clvdata_clvdata.R:212:3', 'test_runability_clvdata_clvdata.R:227:3', 'test_runability_clvdata_clvdata.R:248:3', 'test_runability_clvdata_s3.R:1:1', 'test_runability_clvdata_setdynamiccov.R:1:1', 'test_runability_clvdata_setstaticcov.R:22:3', 'test_runability_clvdata_setstaticcov.R:43:3', 'test_runability_clvdata_setstaticcov.R:56:3', 'test_runability_clvdata_setstaticcov.R:69:3', 'test_runability_clvdata_setstaticcov.R:83:3', 'test_runability_clvdata_setstaticcov.R:100:3', 'test_runability_gg.R:1:1', 'test_runability_ggomnbd_nocov.R:1:1', 'test_runability_ggomnbd_staticcov.R:1:1', 'test_runability_latentattrition.R:1:1', 'test_runability_lrtest.R:1:1', 'test_runability_newcustomer.R:5:1', 'test_runability_pnbd_dynamiccov.R:5:1', 'test_runability_pnbd_nocov.R:1:1', 'test_runability_pnbd_staticcov.R:1:1', 'test_runability_spending.R:1:1' [ FAIL 0 | WARN 0 | SKIP 222 | PASS 1518 ] > > proc.time() user system elapsed 96.71 8.20 105.42