shp_copy: Copy shapefiles between directories

Description Usage Arguments Value Examples

View source: R/shp_copy.r

Description

Copy shapefiles, ensuring that all the supporting files (.shx, .qpj, .dbf, .xml, .prj) get copied too

Usage

1
shp_copy(from, to, overwrite = F)

Arguments

from

Character vector containing filenames of the .shp file to be copied

to

Character vector containing filenames of the .shp file to be copied

overwrite

logical. Should existing destination files be overwritten?

Value

A logical indicating whether the copying action was successful.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# providing a destination filename
shp_copy(from = "C:/Users/pieterbeck/Documents/simple_outline.shp",
to = "C:/Users/pieterbeck/Documents/temp/my_backup.shp")

# providing only a destination directory
shp_copy(from = "C:/Users/pieterbeck/Documents/simple_outline.shp",
to = "C:/Users/pieterbeck/Documents/temp/")

## End(Not run)

pieterbeck/CanHeMonR documentation built on May 25, 2019, 7:11 a.m.