Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose -quiet flag? #125

Closed
dblodgett-usgs opened this issue May 17, 2022 · 1 comment · Fixed by #118
Closed

Expose -quiet flag? #125

dblodgett-usgs opened this issue May 17, 2022 · 1 comment · Fixed by #118

Comments

@dblodgett-usgs
Copy link
Contributor

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
Copy link
Owner

Good idea!

ateucher added a commit that referenced this issue May 18, 2022
@ateucher ateucher linked a pull request May 18, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants