The current setup will cause FantasyPros to default to the normal Position page which is for the draft, but when you enter anything other than week == 0 then you still get the default page.
Below is my fix in the source_configs.R. I'm not sure exactly how pull requests work so ill leave it here. I used the CBS list as a basis and change toupper to tolower. Changing tolower may actually fix it anyway as the position on the site in lowercase
The current setup will cause FantasyPros to default to the normal Position page which is for the draft, but when you enter anything other than week == 0 then you still get the default page.
Below is my fix in the source_configs.R. I'm not sure exactly how pull requests work so ill leave it here. I used the CBS list as a basis and change toupper to tolower. Changing tolower may actually fix it anyway as the position on the site in lowercase
FantasyPros = list( base = "https://www.fantasypros.com/nfl/projections/", get_path = function(season, week, position){ period <- ifelse(week == 0, "draft", as.character(week)) paste(tolower(position),".php?week=",period, sep = "")},
get_path = function(season, week, position)paste0(tolower(position), ".php"),