-
Notifications
You must be signed in to change notification settings - Fork 35
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
error order incorrect #28
Comments
Looks like this is still a problem. |
Can see this problem in an Rmd/qmd too:
I suspect this is because we can only tell when a plot is complete retrospectively, i.e. after a new plot is created or the code finishes. ... Or maybe the problem is that the error handler doesn't handle any output before handling the error. If so, that's an easy fix. |
I see the same problem with test <- function(){
plot(1, main = "one")
message("this is an message!")
plot(2, main = "two")
warning("this is a warning")
plot(3, main = "three")
stop("this is an error")
}
test() |
When running a function that throws plots and then throws an error, the plot appears after the error in the output:
The text was updated successfully, but these errors were encountered: