get_envname <- function(f) {
envs <- c(.GlobalEnv, lapply(loadedNamespaces(), .getNamespace))
for (env in envs) {
if (exists(f, env, inherits = FALSE))
return(environmentName(env))
}
return(NA)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.