fun <- function(x, env ) { eval( as.name( x ) , envir = env ) }
evalStringVec <- function( vec, env = parent.frame() ) {
resultingList <- lapply(X = vec, FUN = fun, env = env)
unlist(resultingList)
}
listToDict <- function( namedList, env = parent.frame() ) {
listNames <- names(namedList)
names( namedList ) <- evalStringVec( listNames, env = env )
namedList
}
dict <- function(...) {
namedList <- list(...)
listToDict(namedList = namedList, env = parent.frame() )
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.