Learn R Programming

rcanvec (version 0.2.1)

canvec.cleanup: Remove CanVec Data Files

Description

Deletes files downloaded by canvec.download(). Use all=TRUE to remove the cache directory entirely.

Usage

canvec.cleanup(ntsid = NULL, cachedir = NULL, all = FALSE, keeparchives = FALSE, keepfolders = FALSE)

Arguments

ntsid
One or more NTS References as generated by nts()
cachedir
The same cachedir that was passed to canvec.download()
all
Use all=TRUE to recursively delete the cache directory.
keeparchives
Pass TRUE to keep .zip files downloaded by canvec.download()
keepfolders
Pass TRUE to keep folders extracted by canvec.download()

Examples

Run this code

canvec.download(nts('21h1'))
canvec.cleanup(nts('21h1'))
#or
canvec.cleanup(all=TRUE)

Run the code above in your browser using DataLab