I noticed that in utils-get-data.R we call httr::GET() which gets the data as a response. This step just seems to be to check there are no errors. Later on the data is read in with readr::read_csv(api_get$url) which then requests the data again.
It would be better to use httr::content(api_get) which parses the response we already have (using readr too) rather than fetching it again.
I noticed that in utils-get-data.R we call httr::GET() which gets the data as a response. This step just seems to be to check there are no errors. Later on the data is read in with readr::read_csv(api_get$url) which then requests the data again.
It would be better to use httr::content(api_get) which parses the response we already have (using readr too) rather than fetching it again.