Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No mention of downloading "portal_mammals.sqlite" file in lesson 06 R and SQL #121

Closed
cwmohr opened this issue Oct 4, 2016 · 1 comment

Comments

@cwmohr
Copy link

cwmohr commented Oct 4, 2016

It is my impression that one should be able to teach more or less directly the R-ecology-lessons. This is not a problem for lesson 00 - 05. However, it is a bit more difficult for lesson 06 "R and SQL", because the requirement of specific files:

In lesson 06 (SQL databases and R) , under the section "Connecting R to sqlite database" there is the following R-script:

## Set dbname and driver out of convenience
myDB <- "data/portal_mammals.sqlite"
conn <- dbConnect(drv = SQLite(), dbname= myDB)

There is however no earlier mention for downloading the file "portal_mammals.sqlite".

I therefore suggest that lesson 06 be updated, by taking into use the download.file() function:

## download mammals database to data folder.
download.file("https://ndownloader.figshare.com/files/2292171", "data/portal_mammals.sqlite")

PS: All the file can be downloaded from http://dx.doi.org/10.6084/m9.figshare.1314459.

@fmichonneau
Copy link
Member

discussion for this issue continues in #162

tracykteal pushed a commit to tracykteal/R-ecology that referenced this issue Jan 14, 2017
Using page.previous and page.next for links instead of loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants