title: How to create a constant inside R package?
body: <p>How to create the constant variable inside the R package, the value of which cannot be changed? In other words, how can we lock the pair name-value in package environment? </p>
  
  <p>Example: In my package I am using a quantile of Normal distribution in loops of different functions, and do not want to calculate (or create) it all the time.</p>
  
  <p>I tried <code>k_q3 &lt;- qnorm(1 - 0.01/2); lockBinding("k_q3", environment())</code>, but it does not work.</p>
  
  <p>UPDATE: The method above actually is workable. One cannot change the k_q3 neither inside package, not outside.</p>