title: Error installing R package
body: <p><strong>EDIT:1</strong> I have already seen <a href="https://stackoverflow.com/questions/7019912/using-the-rjava-package-on-win7-64-bit-with-r">Using the rJava package on Win7 64 bit with R</a></p>
  
  <p>I have Windows 7 64-bit Machine with R 3.1.0, Java 7u67 64-bit installed.
  (<strong>NOTE: I am not allowed to update R</strong>)</p>
  
  <blockquote>
    <p>JAVA_HOME is set to  C:\Program Files\Java\jre7</p>
  </blockquote>
  
  <p>and PATH includes </p>
  
  <blockquote>
    <p>C:\Program Files\Java\jre7\bin and C:\Program Files\Java\jre7\server  (the last entry is for jvm.dll file)</p>
  </blockquote>
  
  <p>From R prompt I can see that RStudio is using 64-bit R</p>
  
  <pre><code>R version 3.1.0 (2014-04-10) -- "Spring Dance"
  Copyright (C) 2014 The R Foundation for Statistical Computing
  Platform: x86_64-w64-mingw32/x64 (64-bit)
  
  &gt; .Machine$sizeof.pointer
  [1] 8    
  </code></pre>
  
  <p>I can load rJava library just fine </p>
  
  <pre><code>&gt; options(java.home="C:\\Program Files\\Java\\jre7\\")
  &gt; library(rJava)
  
  Warning message:
  package ‘rJava’ was built under R version 3.1.1 
  </code></pre>
  
  <p>But when I try to install install bigR package on my machine and I am getting following error message</p>
  
  <pre><code>&gt; install.packages("C:/local/bigr-1.0.tar.gz", repos = NULL, type = "source")
  Installing package into ‘C:/Users/alex/Documents/R/win-library/3.1’
  (as ‘lib’ is unspecified)
  * installing *source* package 'bigr' ...
  ** R
  ** inst
  ** preparing package for lazy loading
  Warning: package 'rJava' was built under R version 3.1.1
  Error : .onLoad failed in loadNamespace() for 'rJava', details:
    call: inDL(x, as.logical(local), as.logical(now), ...)
    error: unable to load shared object 'C:/Program Files/R/R-3.1.0/library/rJava/libs/x64/rJava.dll':
    LoadLibrary failure:  The specified module could not be found.
  
  Error : package 'rJava' could not be loaded
  ERROR: lazy loading failed for package 'bigr'
  * removing 'C:/Users/alex/Documents/R/win-library/3.1/bigr'
  Warning in install.packages :
    running command '"C:/PROGRA~1/R/R-31~1.0/bin/x64/R" CMD INSTALL -l "C:\Users\alex\Documents\R\win-library\3.1" "C:/local/bigr-1.0.tar.gz"' had status 1
  Warning in install.packages :
    installation of package ‘C:/local/bigr-1.0.tar.gz’ had non-zero exit status
  </code></pre>
  
  <p>Any help to solve this problem will be much appreciated..  </p>