Learn R Programming

rcanvec (version 0.2.1)

canvec.download: Download and Extract CanVec or CanVec+ Data

Description

Downloads CanVec or CanVec+ data (as applicable) to cachedir and extracts the archive.

Usage

canvec.download(..., forcedownload = FALSE, forceextract = FALSE, extract = TRUE, cachedir = NULL)

Arguments

...
A list of NTS References as generated by nts()
forcedownload
A boolean describing if the file should be re-downloaded, even if already present.
forceextract
Force the exctraction of the archive even if the folder is already present.
extract
Pass extract=FALSE to download the archive without extracting.
cachedir
Pass a specific cache directory in which to download and extract the file. Default value is that returned by canvec.cachedir()

Examples

Run this code

canvec.download(nts('21h1'))


Run the code above in your browser using DataLab