R Under development (unstable) (2025-10-09 r88913 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 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. > library(testthat) > library(Athlytics) Loading Athlytics version 1.0.0. Analyze your Strava data locally with ease! Use load_local_activities() to get started. For documentation, see: https://hzacode.github.io/athlytics/ > > test_check("Athlytics") Attaching package: 'dplyr' The following object is masked from 'package:testthat': matches The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Start tag expected, '<' not found Start tag expected, '<' not found Start tag expected, '<' not found Start tag expected, '<' not found [ FAIL 3 | WARN 43 | SKIP 9 | PASS 336 ] ══ Skipped tests (9) ═══════════════════════════════════════════════════════════ • Bootstrap test takes too long for regular testing (1): 'test-acwr_ewma.R:115:3' • Requires actual ZIP file for testing (1): 'test-load_local_activities.R:36:3' • Skipping ACWR EWMA test - requires date column conversion (1): 'test-acwr_ewma.R:5:3' • Skipping ACWR EWMA test - requires proper data structure (1): 'test-acwr_ewma.R:48:3' • Skipping CI warning test - requires proper data structure (1): 'test-acwr_ewma.R:151:3' • Skipping file system test - requires actual export structure (1): 'test-all_functions.R:202:3' • Skipping load metrics test - requires proper data structure (1): 'test-acwr_ewma.R:179:3' • athlytics_sample_data not available (1): 'test-load_local_activities.R:10:3' • file.exists("strava_export_data/activities.csv") is not TRUE (1): 'test-load_local_activities.R:25:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-all_functions.R:116:3'): calculate_decoupling works correctly ── Error in `map(.x, .f, ...)`: ℹ In index: 1. Caused by error in `parse_activity_file()`: ! Activity file does not exist: D:\temp\2025_10_10_06_30_16_11802\RtmpY1RSSR/D:\temp\2025_10_10_06_30_16_11802\RtmpY1RSSR/activities/1.gpx Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-all_functions.R:116:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─Athlytics::calculate_decoupling(test_data, export_dir = tempdir()) 7. │ └─purrr::map_dfr(...) 8. │ └─purrr::map(.x, .f, ...) 9. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 10. │ ├─purrr:::with_indexed_errors(...) 11. │ │ └─base::withCallingHandlers(...) 12. │ ├─purrr:::call_with_cleanup(...) 13. │ └─Athlytics (local) .f(.x[[i]], ...) 14. │ └─Athlytics:::parse_activity_file(file_path, export_dir) 15. │ └─base::stop(sprintf("Activity file does not exist: %s", file_path)) 16. └─base::.handleSimpleError(...) 17. └─purrr (local) h(simpleError(msg, call)) 18. └─cli::cli_abort(...) 19. └─rlang::abort(...) ── Error ('test-calculate_pbs_new.R:86:3'): calculate_pbs filters by date range ── Error in `map(.x, .f, ...)`: ℹ In index: 1. Caused by error in `parse_activity_file()`: ! Activity file does not exist: D:\temp\2025_10_10_06_30_16_11802\RtmpY1RSSR/D:\temp\2025_10_10_06_30_16_11802\RtmpY1RSSR/activities/5.gpx Backtrace: ▆ 1. ├─Athlytics::calculate_pbs(...) at test-calculate_pbs_new.R:86:3 2. │ └─purrr::map_dfr(...) 3. │ └─purrr::map(.x, .f, ...) 4. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 5. │ ├─purrr:::with_indexed_errors(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ ├─purrr:::call_with_cleanup(...) 8. │ └─Athlytics (local) .f(.x[[i]], ...) 9. │ └─Athlytics:::parse_activity_file(file_path, export_dir) 10. │ └─base::stop(sprintf("Activity file does not exist: %s", file_path)) 11. └─base::.handleSimpleError(...) 12. └─purrr (local) h(simpleError(msg, call)) 13. └─cli::cli_abort(...) 14. └─rlang::abort(...) ── Failure ('test-parse_activity_file.R:15:3'): parse_activity_file validates input ── `parse_activity_file(temp_file)` did not throw an error. [ FAIL 3 | WARN 43 | SKIP 9 | PASS 336 ] Error: Test failures Execution halted