hydat_load: Load a previously extracted Hydat Database

Description Usage Arguments Value Examples

View source: R/hydat_db.R

Description

This function uses src_sqlite to load the sqlite database extracted by hydat_extract and downloaded using hydat_download.

Usage

1
hydat_load(source = ".", set = TRUE)

Arguments

source

The directory where the Hydat database was extracted, or the database file.

set

Pass FALSE to skip setting the internal package reference to the loaded database (advanced).

Value

An object extending src_sqlite, invisibly

Examples

1
2
3
4
5
6
7
8
## Not run: 
# hydat_download() takes about 10 minutes; hydat_extract() takes about 2 minutes
hydat_download()
hydat_extract()
hydat_db <- hydat_load()
dplyr::src_tbls(hydat_db)

## End(Not run)

paleolimbot/hydatr documentation built on July 28, 2017, 12:17 a.m.