I\'m working in R, and I\'d like to define some variables that I (or one of my collaborators) cannot change. In C++ I\'d do this:
const std::string path( \"/
See lockBinding:
lockBinding
a <- 1 lockBinding("a", globalenv()) a <- 2 Error: cannot change value of locked binding for 'a'