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

immediate. option for warn #1546

Closed
AltfunsMA opened this issue Jan 26, 2023 · 1 comment
Closed

immediate. option for warn #1546

AltfunsMA opened this issue Jan 26, 2023 · 1 comment

Comments

@AltfunsMA
Copy link

Judging from #1397, I suspect there may be some impediment to providing this switch as available in base::warning but it seems like a good addition.

A use case is when writing messages to the console for the user to keep track of where some long-running operation is at (e.g. "Processing file 2012.csv...". It makes most sense to throw a warning at the appropriate location between those log messages, so that they can take remedial action (e.g. format file "2012.csv" differently) to potentially speed up processing or facilitate computation or output in some other way.

@lionel-
Copy link
Member

lionel- commented Feb 9, 2023

The immediate. option of warning() doesn't work with classed conditions so implementing this would be too difficult at this time.

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