- using R Under development (unstable) (2025-11-13 r89015)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘nhlapi/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘nhlapi’ version ‘0.1.4’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘nhlapi’ can be installed ... [6s/21s] OK
See the install log for details.
- checking package directory ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking whether startup messages can be suppressed ... OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [7s/23s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking LazyData ... INFO
'LazyData' is specified without a 'data' directory
- checking R/sysdata.rda ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [10s/27s] ERROR
Running ‘testthat.R’ [10s/27s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(nhlapi)
>
> test_check("nhlapi")
Saving _problems/test.nhl_get_data-50.R
Saving _problems/test.nhl_get_data-62.R
Saving _problems/test.nhl_get_data-79.R
Saving _problems/test.nhl_get_data-122.R
Saving _problems/test.nhl_get_data-155.R
Saving _problems/test.nhl_md_endpoints-11.R
Saving _problems/test.nhl_md_endpoints-23.R
Saving _problems/test.nhl_md_endpoints-35.R
Saving _problems/test.nhl_md_endpoints-47.R
Saving _problems/test.nhl_md_endpoints-59.R
Saving _problems/test.nhl_md_endpoints-71.R
Saving _problems/test.nhl_md_endpoints-83.R
Saving _problems/test.nhl_process_results-35.R
Saving _problems/test.nhl_teams_rosters-32.R
Saving _problems/test.nhl_teams_schedule-14.R
Saving _problems/test.nhl_teams_schedule-29.R
Saving _problems/test.nhl_teams_stats-20.R
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
══ Skipped tests (38) ══════════════════════════════════════════════════════════
• On CRAN (37): 'test.nhl_awards.R:5:5', 'test.nhl_conferences.R:5:5',
'test.nhl_divisions.R:5:5', 'test.nhl_draft_prospects.R:5:5',
'test.nhl_drafts.R:5:5', 'test.nhl_games.R:5:5', 'test.nhl_games.R:18:5',
'test.nhl_games.R:31:5', 'test.nhl_games.R:44:5', 'test.nhl_get_data.R:5:5',
'test.nhl_get_data.R:17:5', 'test.nhl_get_data.R:32:5',
'test.nhl_players.R:5:5', 'test.nhl_players_seasons.R:5:5',
'test.nhl_players_seasons.R:21:5', 'test.nhl_players_seasons.R:37:5',
'test.nhl_players_seasons.R:63:5', 'test.nhl_players_seasons.R:83:5',
'test.nhl_players_seasons.R:95:5', 'test.nhl_schedule.R:5:5',
'test.nhl_schedule.R:22:5', 'test.nhl_schedule.R:48:5',
'test.nhl_schedule.R:78:5', 'test.nhl_schedule.R:109:5',
'test.nhl_schedule.R:142:5', 'test.nhl_seasons.R:5:5',
'test.nhl_standings.R:5:5', 'test.nhl_standings.R:28:5',
'test.nhl_standings.R:53:5', 'test.nhl_standings.R:83:5',
'test.nhl_teams.R:5:5', 'test.nhl_teams_rosters.R:5:5',
'test.nhl_tournaments.R:5:5', 'test.nhl_tournaments.R:18:5',
'test.nhl_tournaments.R:31:5', 'test.nhl_utils.R:303:5',
'test.nhl_venues.R:5:5'
• skipSelectedTests is TRUE (1): 'test.nhl_plot_rink.R:16:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test.nhl_get_data.R:47:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:47:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:56:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:56:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:68:5'): nhl_from_json retries and fails n times ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:68:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:86:5'): nhl_from_json retries then succeeds ─────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:86:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:133:5'): nhl_from_json no retries for noRetryPatt, only for valid ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:133:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:5:5'): nhl_md_game_types ────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:17:5'): nhl_md_game_statuses ────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_statuses())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:29:5'): nhl_md_play_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:29:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_play_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:41:5'): nhl_md_tournament_types ─────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:41:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_tournament_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:53:5'): nhl_md_standings_types ──────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:53:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_standings_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:65:5'): nhl_md_stat_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:65:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_stat_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:77:5'): nhl_md_event_types ──────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:77:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_event_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_process_results.R:29:5'): Warn but return if failed rbindlist ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test.nhl_process_results.R:29:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─testthat::with_mock(...)
7. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
8. └─lifecycle:::deprecate_stop0(msg)
9. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_rosters.R:17:5'): Roster for 2 teams and 2 seasons ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_rosters.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:5:5'): Next match schedule for 2 teams ────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_next(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:20:5'): Next match schedule for 2 teams ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:20:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_previous(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_stats.R:5:5'): Statas for 2 teams and 2 seasons ──────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_stats.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [26s/100s] OK
- checking PDF version of manual ... [10s/38s] OK
- checking HTML version of manual ... [7s/21s] OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR