final <- function(name, env=.GlobalEnv){
if(!bindingIsLocked(name, env)){
lockBinding(name, env)
} else {
stop("Variable", name, "is already declared as 'final'!")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.