Learn R Programming

geojsonlint (version 0.3.0)

gj_write: Write inputs to a geojson file

Description

Write inputs to a geojson file

Usage

gj_write(x, file, ...)

Arguments

x

input character, json, or geojson

file

file path to write to

...

Further args

Examples

Run this code
# NOT RUN {
gj_write(x = '{"type": "Point", "coordinates": [-100, 80]}',
  (file <- tempfile()))
jsonlite::fromJSON(file)
# }

Run the code above in your browser using DataLab