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

use message() instead of print() #6

Open
jonathancallahan opened this issue Oct 19, 2019 · 1 comment
Open

use message() instead of print() #6

jonathancallahan opened this issue Oct 19, 2019 · 1 comment

Comments

@jonathancallahan
Copy link

First off, thanks for this package!! It's short and sweet and does exactly what we need. We have a couple of packages that help provide and organize spatial metadata associated with environmental monitoring:

Our packages need to be able to work well for both analysts sitting in front of RStudio and also inside of batch scripts. For batch scripts we typically ignore messages intended for a human user. This is easy to do if underlying code consistently uses message(), warning() and stop(). However, for any packages that print() or cat() we have to write specialized code using capture.output() in order to run things in verbose = FALSE mode.

I think it would be a general improvement if you swapped out all use of print() for message().

@mhudecheck
Copy link
Owner

Glad you like it! We're prepping an update to CRAN over the next couple of days. I'll go ahead and swap out print() for message().

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

No branches or pull requests

2 participants