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

Commit fff1180

Browse files
authored
Merge pull request #27 from jthmiller/gh-pages
DO NOT MERGE THIS PULL REQUEST
2 parents d38c0bf + 076b662 commit fff1180

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

02-starting-with-data.Rmd

+8
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ We are studying a population of Escherichia coli (designated Ara-3), which were
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).
4444

45+
### OR
46+
47+
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.file()`, you may need to change the directory `"~/Downloads/portal_data_joined.csv"`
48+
49+
```{r, eval=TRUE, purl=FALSE}
50+
download.file("https://ndownloader.figshare.com/files/2292169",
51+
"~/Downloads/portal_data_joined.csv")
52+
```
4553
- First, make sure you are in the correct working directory by typing `getwd()`
4654
- Second, create a new subdirectory within this working directory called `data`
4755
- Third, move the just-downloaded `Ecoli_metadata.csv` file into this `data` directory

0 commit comments

Comments
 (0)