title: "unable to move temporary installation" when installing dependency packages in R
body: <p>When I install a package, the prerequisite packages were installed first before the actual package. I get the <code>"unable to move temporary installation"</code> warning for all the prerequisite packages, but no such warning for the actual package. But the package will give error when I load it.</p>
  
  <p>For example, when I <code>install.packages("mlr")</code>, it installed all the dependencies and I got various warnings such as this:</p>
  
  <pre><code>package ‘BBmisc’ successfully unpacked and MD5 sums checked
  Warning in install.packages :
    unable to move temporary installation ‘D:\Documents\R\win-library\3.2\filef3811142c73\BBmisc’ to ‘D:\Documents\R\win-library\3.2\BBmisc’
  </code></pre>
  
  <p>I ignored it because it's just a warning. Unfortunately <code>library(mlr)</code> gave me <code>Error: package ‘BBmisc’ required by ‘mlr’ could not be found</code>, so I couldn't ignore it after all.</p>
  
  <p><code>install.packages("BBmisc")</code> directly didn't produce the warning.</p>
  
  <p>What gives? How can I work through this, short of installing all the dependencies on my own?</p>
  
  <p>In case session info needed:</p>
  
  <pre><code>&gt; sessionInfo()
  R version 3.2.2 (2015-08-14)
  Platform: x86_64-w64-mingw32/x64 (64-bit)
  Running under: Windows 7 x64 (build 7601) Service Pack 1
  
  locale:
  [1] LC_COLLATE=English_Singapore.1252  LC_CTYPE=English_Singapore.1252   
  [3] LC_MONETARY=English_Singapore.1252 LC_NUMERIC=C                      
  [5] LC_TIME=English_Singapore.1252    
  
  attached base packages:
  [1] stats     graphics  grDevices utils     datasets  methods   base     
  
  loaded via a namespace (and not attached):
  [1] tools_3.2.2
  </code></pre>