The fg_pitcher_leaders() function currently returns an error even when all parameters are correctly specified as a result of dplyr::select() attempting to access the Season column, when the API query returns season (lowercase) instead. This PR fixes the error within the fg_pitcher_leaders() function. It may be worth further investigation into potential effects of this renaming on other fg_ functions.
The
fg_pitcher_leaders()
function currently returns an error even when all parameters are correctly specified as a result ofdplyr::select()
attempting to access theSeason
column, when the API query returnsseason
(lowercase) instead. This PR fixes the error within thefg_pitcher_leaders()
function. It may be worth further investigation into potential effects of this renaming on otherfg_
functions.