hydat_extract: Extract a Zipped Hydat Database

Description Usage Arguments Value Examples

Description

A zipped version of the Hydat database can be obtained using hydat_download. The extracted database is more than 1 GB in size. If multiple downloaded archives exist in the source directory, the latest one is used with a message.

Usage

1
hydat_extract(source = ".", destination = NULL, overwrite = NA)

Arguments

source

The directory that contains the hydat database or the hydat zip file.

destination

The directory that the output zip file should be unzipped to.

overwrite

Should existing files be overwritten? (use NA to skip a previously extracted file).

Value

The filename of the extracted sqlite database file

Examples

1
2
3
4
5
6
## Not run: 
# hydat_download() takes about 10 minutes; hydat_extract() takes about 2 minutes
hydat_download()
hydat_extract()

## End(Not run)

paleolimbot/hydatr documentation built on May 3, 2019, 5:49 p.m.