ateucher / rmapshaper

An R wrapper for the mapshaper javascript library
http://andyteucher.ca/rmapshaper/
Other
200 stars 13 forks source link

Expose `-quiet` flag? #125

Closed dblodgett-usgs closed 1 year ago

dblodgett-usgs commented 2 years ago

I'm finding it impossible to suppress messages when calling rmapshaper with sys=TRUE

Those are some strong messages!! Any idea how to suppress these? Would it need to be the -quiet flag?

nc <- sf::read_sf(system.file("gpkg/nc.gpkg", package = "sf"))

sink(file = tempfile())
suppressMessages(suppressWarnings({
  output <- capture.output({
    o <- rmapshaper::ms_explode(nc, sys = TRUE)
  })
}))
sink()

image

ateucher commented 2 years ago

Good idea!