Skip to content
This repository was archived by the owner on Aug 4, 2020. It is now read-only.

Commit bbfc024

Browse files
authored
Update options for downloading files
1 parent a60a6c4 commit bbfc024

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

02-starting-with-data.Rmd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ We are studying a population of Escherichia coli (designated Ara-3), which were
4141

4242

4343
The metadata file required for this lesson can be [downloaded directly here](https://raw.githubusercontent.com/datacarpentry/R-genomics/gh-pages/data/Ecoli_metadata.csv) or [viewed in Github](./data/Ecoli_metadata.csv).
44+
#OR
45+
Use R to download the file by giving the *download.file* function the link address for the file, and where you want to put this file. If you see and error in response to *download.files*, you may need to change the directory
4446

47+
```{r, eval=TRUE, purl=FALSE}
48+
download.file("https://ndownloader.figshare.com/files/2292169",
49+
"~/Downloads/portal_data_joined.csv")
50+
```
4551
- First, make sure you are in the correct working directory by typing `getwd()`
4652
- Second, create a new subdirectory within this working directory called `data`
4753
- Third, move the just-downloaded `Ecoli_metadata.csv` file into this `data` directory

0 commit comments

Comments
 (0)