title: R: Update List Variable In Package
body: <p>I have an R package that contains a list variable. Several functions in this package use this list variable.</p>
  
  <p>I would like to change the value of this list variable from outside of the package. I am able to update a function outside of the package using</p>
  
  <pre><code>library(R.utils)
  f &lt;- function(x) x
  reassignInPackage("f", pkgName="name", f);
  </code></pre>
  
  <p>However, when I try to override a list variable</p>
  
  <pre><code> global &lt;- list(a=5, b=3) 
   reassignInPackage("global", pkgName="name", global);
  </code></pre>
  
  <p>I get the error,</p>
  
  <pre><code>Error in unlockBindingT(name, env) : use of NULL environment is defunct
  </code></pre>
  
  <p>Is there anyway to override a list variable defined inside of a package?</p>