# NOT RUN {
# You first need to create your SQLite databases, e.g, for amphibians:
## In the terminal
# wget
# https://knb.ecoinformatics.org/knb/d1/mn/v1/object/urn:uuid:afc58110-b9c1-4cf7-b46c-837bdc930a21
# mv urn\:uuid\:afc58110-b9c1-4cf7-b46c-837bdc930a21 vertnet_amphib.gz
# gunzip vertnet_amphib.gz
# sqlite3 amphibians.sqlite
## In SQLite
# sqlite> .separator ','
# sqlite> .import vertnet_amphib amphibians
# After you have a SQLite database, do
# library("dplyr")
# x <- dump_init(path = "~/github/sac/vertnetdumps/amphibians.sqlite")
# use SQL syntax
# tbl(x, sql("SELECT scientificname,title FROM amphibians LIMIT 10"))
# use R syntax
# tab <- x %>% dump_tbl()
# tab %>%
# filter(year > 2010) %>%
# select(scientificname, title)
# }
Run the code above in your browser using DataCamp Workspace