Skip to content

Commit

Permalink
added exported fxn cwgr() to use internal fxn, #77
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Feb 19, 2016
1 parent 2f6beff commit 1dc2acd
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export(as.json)
export(as.location)
export(bounds)
export(centroid)
export(cwgr)
export(file_to_geojson)
export(geojson_json)
export(geojson_list)
Expand Down
11 changes: 11 additions & 0 deletions R/cwgr.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#' capture writeOGR
#'
#' @export
#' @examples \dontrun{
#' library("rgdal")
#' cities <- readOGR(system.file("vectors", package = "rgdal")[1], "cities")
#' cwgr(cities[1:10,], "cities")
#' }
cwgr <- function(obj, layer) {
capturedWriteOGR(obj, object.size(obj), layer, writeOGR)
}
19 changes: 19 additions & 0 deletions man/cwgr.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified src/captured_write_ogr.o
Binary file not shown.
Binary file modified src/geojsonio.so
Binary file not shown.

0 comments on commit 1dc2acd

Please sign in to comment.