Reactive Expressions: Cached Errors

Errors are cached just as values.

r <- reactive(stop("Error occured at ", Sys.time(), call. = FALSE))
r()
## Error : Error occured at 2024-08-14 13:34:34.057366

So if you run it again, it won’t update the message.

Sys.sleep(2)
r()
## Error : Error occured at 2024-08-14 13:34:34.057366