gj_write: Write inputs to a geojson file

View source: R/write.R

gj_writeR Documentation

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

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

ropenscilabs/geojsonlint documentation built on Sept. 12, 2022, 4:08 p.m.