getEnv <- function(x)
{
xobj <- deparse(substitute(x))
gobjects <- ls(envir=.GlobalEnv)
envirs <- gobjects[sapply(gobjects, function(x) is.environment(get(x)))]
envirs <- c('.GlobalEnv', envirs)
xin <- sapply(envirs, function(e) xobj %in% ls(envir=get(e)))
envirs[xin]
}
BSkyEnvTest <- function(varname)
{
varenv <- eval( parse(text=paste('getEnv(varname)',sep='')))
print(varenv)
varenv2 <- eval( parse(text=paste('getEnv(summary)',sep='')))
print(varenv2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.