Declaring a Const Variable in R

前端 未结 6 993
耶瑟儿~
耶瑟儿~ 2020-12-05 00:07

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( \"/         


        
6条回答
  •  独厮守ぢ
    2020-12-05 00:31

    R doesn't have a language constant feature. The list idea above is good; I personally use a naming convention like ALL_CAPS.

提交回复
热议问题