Defer errors
Proof-of-concept for collecting up errors from a code block and throwing them at all once.
check_positive <- function(x) { if (x < 0) { defer::deferrable_error(paste("got a negative number:", x)) } } defer::defer_errors({ check_positive(0) check_positive(-1) check_positive(-2) })
For more information see our blog post
For now, install directly from github
remotes::install_github("reside-ic/defer")
MIT © Imperial College of Science, Technology and Medicine
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.