loadsData <- function(e) {
t1 <- is(e$expr, "<-")
t2 <- exists("myData", globalenv())
t3 <- FALSE
if(t2) {
d <- get("myData", globalenv())
t3 <- is(d, "data.frame")
}
all(t1, t2, t3)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.