Skip to content

Commit

Permalink
create script to download data from figshare
Browse files Browse the repository at this point in the history
  • Loading branch information
fmichonneau committed May 17, 2018
1 parent 8033c57 commit a57ae69
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/download_data.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if (!dir.exists("data"))
dir.create("data")

if (! file.exists("data/SAFI_clean.csv")) {
download.file("https://ndownloader.figshare.com/files/11492171",
"data/SAFI_clean.csv", mode = "wb")
}

0 comments on commit a57ae69

Please sign in to comment.