grattan / R_at_Grattan

Using R at Grattan
https://grattan.github.io/R_at_Grattan/
Creative Commons Zero v1.0 Universal
7 stars 3 forks source link

Downloading data directly to `read_csv` #7

Closed wfmackey closed 5 years ago

wfmackey commented 5 years ago

This can sometimes be convenient, but it's probably not best practice.

Should the recommendation be: download data using a script (where possible) to your data/ folder. This protects the project from broken/changed links.

MattCowgill commented 5 years ago

I feel seen (my 'deaths of despair' script has the URL within read_csv() ).

But yes, we should recommend that. My personal preference is to have my script check if the .csv exists locally and if not, fetch it from the remote source. But that's probably needlessly elaborate.

wfmackey commented 5 years ago

lol yes maybe too elaborate. Let's recommend downloading to data/ and keeping the url in the script.

THIS STYLE MATTER IS SETTLED