powered by
Write geojson to disk
geo_write(x, file)
input, an object of class geojson
geojson
(character) a file path, or connection
Wrapper around jsonlite::toJSON() and cat
jsonlite::toJSON()
cat
file <- tempfile(fileext = ".geojson") geo_write( point('{ "type": "Point", "coordinates": [100.0, 0.0] }'), file ) readLines(file) unlink(file)
Run the code above in your browser using DataLab