title: error installing TSA package for R on RStudio
body: <p>so I've been struggling with this issue for a while now, and I cannot seem to find this issue anywhere else on the internet.</p>
  <p>I am running:
  Linux Mint 12(based on Ubuntu 11.10)
  The latest version of R(2.15.1)
  RStudio(0.96.331)</p>
  <p>Both R and RStudio are the latest versions, so my issues with installing TSA are not based on an outdated version of R.</p>
  <p>Here is the error message I am getting when I try to install TSA through RStudio(I installed PerformanceAnalytics and xts without any issues):</p>
  <blockquote>
  <p>installing <em>source</em> package ‘TSA’ ...</p>
  <p>** Creating default NAMESPACE file</p>
  <p>** R</p>
  <p>** data</p>
  <p>** preparing package for lazy loading</p>
  <p>Error : .onLoad failed in loadNamespace() for 'Matrix', details:</p>
  <p>call: assignInNamespace(&quot;..Old..as.matrix&quot;, base::as.matrix, ns = &quot;base&quot;)</p>
  <p>error: locked binding of ‘..Old..as.matrix’ cannot be changed</p>
  <p>Error : package ‘mgcv’ could not be loaded</p>
  <p>ERROR: lazy loading failed for package ‘TSA’</p>
  <ul>
  <li>removing ‘/home/client/R/i686-pc-linux-gnu-library/2.15/TSA’</li>
  </ul>
  <p>Warning in install.packages :</p>
  <p>installation of package ‘TSA’ had non-zero exit status</p>
  </blockquote>
  <p>I have checked my version of mgcv and it is the latest(I checked on my Software Manager and it is installed as well as the latest version).</p>
  <p>I really have no idea of what to do now. I contemplated installing TSA manually onto my system itself, but I couldn't find a reliable website that explains how to install packages directly to R itself.</p>
  <p>All assistance with this issue will be greatly appreciated.</p>