List files associated with a shapefile
shp_list_files(file, ext = shp_extensions(), exists = TRUE) shp_delete(file, ext = shp_extensions()) shp_copy(file, to, ext = shp_extensions(), overwrite = FALSE) shp_move(file, to, ext = shp_extensions(), overwrite = FALSE) shp_assert(file) shp_extensions()
file | A .shp file |
---|---|
ext | One or more extensions to include |
exists | Use |
to | Destination: a .shp filename the same length as |
overwrite | Use |
A list of files of length length(file) * length(ext)
.
#> [1] "/Users/runner/work/_temp/Library/shp/shp/anno.shp" #> [2] "/Users/runner/work/_temp/Library/shp/shp/anno.shx" #> [3] "/Users/runner/work/_temp/Library/shp/shp/anno.dbf" #> [4] "/Users/runner/work/_temp/Library/shp/shp/anno.aux"#> [1] "anno.aux" "anno.dbf" "anno.shp" "anno.shx"#> [1] "anno1.aux" "anno1.dbf" "anno1.shp" "anno1.shx"#> character(0)