createBorrowEnvironment <- function(ansEnvironment, targetAnsLabel){
borrowEnvName <- as.name(paste0("borrowEnv_", targetAnsLabel))
createBorrowEnvExpr <- rlang::expr((!!borrowEnvName) <<- rlang::env_clone(answerEnvironment, parent=dataEnvironment))
eval(createBorrowEnvExpr)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.