Current version can only read geojson/csv files using the given `file.uri`.

explore_file(file.uri, background = FALSE)

Arguments

file.uri

character path of file to explore

background

Boolean to run the process in the background, defaults to `FALSE`

Value

no value returned, depending on `background` either a or not blocking `plumber` instance is started. A message is displayed with instance details.

Examples

{
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)
}
#> Running plumber at: http://127.0.0.1/8000