Reputation: 3039
I'm using a script that contains some tryCatch
-commands and creats a PNG-plot. When I run this script and an error occurs, the error handler works fine (including printing the error). But afterwards I can't print anything in the console, even print("text")
does not show any results. However, error messages are still shown (e.g., printing geewd()
results in the error message Error: Could not find function "geewd"
). Any idea what's the problem?
(Because of the complexity of the script, unfortunately, I can't provide a MWE.)
Upvotes: 0
Views: 4856
Reputation: 29477
I see this problem when a sink()
has been opened but not closed, probably because an error occurred before the closing code was reached.
Try this to plug an open sink:
sink(NULL)
Upvotes: 6