view.sample <- function(x, dat){
samp.nm <- dat$out.r.entry$getText()
if( exists( samp.nm, envir=.GlobalEnv ) ){
samp <- get( samp.nm, pos=.GlobalEnv )
View( samp, samp.nm )
} else {
error.message(paste( "Sample object", samp.nm, "does not exist."))
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.