| replay | R Documentation | 
Replay a list of evaluated results, as if you'd run them in an R terminal.
replay(x)
| x | result from  | 
f1 <- function() {
  cat("1\n")
  print("2")
  warning("3")
  print("4")
  message("5")
  stop("6")
}
replay(evaluate("f1()"))
f2 <- function() {
  message("Hello")
  plot(1:10)
  message("Goodbye")
}
replay(evaluate("f2()"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.