clear <- function()
{
platform <- .Platform$OS.type
gui <- .Platform$GUI
if (gui == "RStudio" || platform == "Windows")
cat("\014")
else if (platform == "unix")
system("clear")
else # what the hell are you using?
cat(rep("\n", 100))
invisible()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.