explore_file | R Documentation |
Current version can only read geojson/csv files using the given 'file.uri'.
explore_file(file.uri, background = FALSE)
file.uri |
character path of file to explore |
background |
Boolean to run the process in the background, defaults to 'FALSE' |
no value returned, depending on 'background' either a or not blocking 'plumber' instance is started. A message is displayed with instance details.
{ fp = file.path(tempdir(), "test.geojson") gj = c( '[ {"type":"Point","coordinates":[0,0]}, {"type":"LineString","coordinates":[[-1,-1],[1,1]]}, { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {"id":1}, "geometry": {"type": "Point", "coordinates": [100.0, 0.0]} } ] } ]' ) write(gj, fp) ps = tgver::explore_file(fp, background = TRUE) ps$kill() unlink(fp, recursive = TRUE) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.