Both of the Spotrac functions return errors.
For example, when I excute the following code using team payroll function, the error message I wrote under the code appears.
sptrc_team_active_payroll(team_abbr = "PHI",year=2026)
2026-01-14 16:09:17.125165: Invalid arguments or no contract data available!
Error in baseballr::sptrc_team_active_payroll(team_abbr = "PHI") :
object 'Active_Payroll' not found
For league payroll functions, it is almost the same thing.
sptrc_league_payrolls()
2026-01-14 16:15:17.37005: Invalid arguments or no contract data available!
Error in baseballr::sptrc_league_payrolls() :
object 'league_payroll' not found
My environment:
Windows 11 25H2
R 4.5.2
baseballr 1.6.0.9002 (Installed via GitHub)
Both of the Spotrac functions return errors.
For example, when I excute the following code using team payroll function, the error message I wrote under the code appears.
sptrc_team_active_payroll(team_abbr = "PHI",year=2026)For league payroll functions, it is almost the same thing.
sptrc_league_payrolls()My environment:
Windows 11 25H2
R 4.5.2
baseballr 1.6.0.9002 (Installed via GitHub)