* using log directory 'd:/Rcompile/CRANpkg/local/4.4/fflr.Rcheck' * using R version 4.4.0 (2024-04-24 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'fflr/DESCRIPTION' ... OK * this is package 'fflr' version '2.2.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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'fflr' can be installed ... OK * checking installed package size ... OK * 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 ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] 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 ... [6s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking R/sysdata.rda ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [2s] ERROR Running examples in 'fflr-Ex.R' failed The error most likely occurred in: > ### Name: acquisition_settings > ### Title: League waiver settings > ### Aliases: acquisition_settings > > ### ** Examples > > acquisition_settings(leagueId = "42654852") Error: API did not return JSON Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [50s] ERROR Running 'spelling.R' [0s] Running 'testthat.R' [50s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(fflr) > > options(fflr.leagueId = "42654852") > test_check("fflr") Request failed [500]. Retrying in 1.5 seconds... Request failed [500]. Retrying in 3.8 seconds... No scheduled professional football events No scheduled professional football events [ FAIL 47 | WARN 0 | SKIP 1 | PASS 32 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • rvest cannot be loaded (1): 'test-news.R:10:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-abbrev.R:1:1'): (code run outside of `test_that()`) ──────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::league_teams("42654852") at test-abbrev.R:1:1 2. └─fflr::ffl_api(...) 3. └─fflr:::try_json(...) ── Error ('test-acquisition.R:2:3'): player acquisition ──────────────────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::player_acquire(leagueId = "42654852") at test-acquisition.R:2:3 2. └─fflr::ffl_api(...) 3. └─fflr:::try_json(...) ── Error ('test-activity.R:2:3'): recent activity ────────────────────────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::recent_activity(...) at test-activity.R:2:3 2. └─fflr::ffl_api(...) 3. └─fflr:::try_json(...) ── Error ('test-api.R:2:3'): empty API call returns fantasy league info ──────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::ffl_api(leagueId = "42654852") at test-api.R:2:3 2. └─fflr:::try_json(...) ── Error ('test-best.R:2:3'): calculate best possible past roster ────────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::best_roster(...) at test-best.R:2:3 2. └─fflr::ffl_api(...) 3. └─fflr:::try_json(...) ── Error ('test-best.R:17:3'): calculate best possible future roster ─────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::best_roster(...) at test-best.R:17:3 2. └─fflr::ffl_api(...) 3. └─fflr:::try_json(...) ── Error ('test-draft.R:2:3'): obtain draft data ─────────────────────────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::draft_recap(leagueId = "42654852") at test-draft.R:2:3 2. └─fflr::ffl_api(...) 3. └─fflr:::try_json(...) ── Error ('test-draft.R:10:3'): obtain draft data history ────────────────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::draft_recap(leagueId = "42654852", leagueHistory = TRUE) at test-draft.R:10:3 2. └─fflr::ffl_api(...) 3. └─fflr:::try_json(...) ── Error ('test-history.R:2:3'): historical data can be returned ─────────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::league_standings(leagueId = "42654852", leagueHistory = TRUE) at test-history.R:2:3 2. └─fflr::ffl_api(...) 3. └─fflr:::try_json(...) ── Error ('test-history.R:12:3'): historical data can be combined ────────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::combine_history(fun = league_simulation, leagueId = "42654852") at test-history.R:12:3 2. └─fflr (local) fun(..., leagueHistory = TRUE) 3. └─fflr::ffl_api(...) 4. └─fflr:::try_json(...) ── Error ('test-info.R:2:3'): current year ───────────────────────────────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::ffl_year() at test-info.R:2:3 2. └─fflr::ffl_info() 3. └─fflr:::try_json("https://fantasy.espn.com/apis/v3/games/ffl") ── Error ('test-info.R:8:3'): current week ───────────────────────────────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::ffl_week() at test-info.R:8:3 2. └─fflr::ffl_info() 3. └─fflr:::try_json("https://fantasy.espn.com/apis/v3/games/ffl") ── Error ('test-info.R:14:3'): fantasy seasons ───────────────────────────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::ffl_seasons() at test-info.R:14:3 2. └─fflr:::try_json("https://fantasy.espn.com/apis/v3/games/ffl/seasons") ── Error ('test-info.R:20:3'): fantasy seasons ───────────────────────────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::espn_games() at test-info.R:20:3 2. └─fflr:::try_json("https://fantasy.espn.com/apis/v3/games") ── Error ('test-live.R:2:3'): live scoring returns 1 row per team ────────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::live_scoring(...) at test-live.R:2:3 2. └─fflr::ffl_api(...) 3. └─fflr:::try_json(...) ── Error ('test-members.R:2:3'): league members ──────────────────────────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::league_members(leagueId = "42654852") at test-members.R:2:3 2. └─fflr::ffl_api(...) 3. └─fflr:::try_json(...) ── Error ('test-members.R:8:3'): league members history with names ───────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::league_members(leagueId = "42654852", leagueHistory = TRUE) at test-members.R:8:3 2. └─fflr::ffl_api(...) 3. └─fflr:::try_json(...) ── Error ('test-messages.R:2:3'): league messages ────────────────────────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::league_messages(leagueId = "42654852") at test-messages.R:2:3 2. └─fflr::ffl_api(...) 3. └─fflr:::try_json(...) ── Error ('test-opponents.R:2:3'): opponent ranks ────────────────────────────── Error: API did not return JSON Backtrace: ▆ 1. └─fflr::opponent_ranks(leagueId = "42654852") at test-opponents.R:2:3 2. └─fflr::ffl_api(leagueId, view = "kona_player_info") 3. └─fflr:::try_json(...) ── Error ('test-outlook.R:2:3'): get individual player outlook ───────────────── Error: lexical error: invalid char in json text.