### Try to source a script file and returns a structured error if it fails
### Romain Francois <francoisromain@free.fr>
trySource <- function (file)
{
out <- try(source(file), silent = TRUE)
if (inherits(out, "try-error"))
out <- parseError(out)
return(invisible(out))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.