check_code = function(test_code){
tcres = tryCatch(
{
invisible(
capture.output(
suppressWarnings(
suppressMessages(source(test_code))
)
)
)
list(isgood = TRUE)},
error = function(e) {
list(isgood=FALSE, error=e)})
tcres}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.