EDIT:1 I have already seen Using the rJava package on Win7 64 bit with R
I have Windows 7 64-bit Machine with R 3.1.0, Java 7u67 64-bit installed. (NOTE: I am not allowed to update R)
JAVA_HOME is set to C:\Program Files\Java\jre7
and PATH includes
C:\Program Files\Java\jre7\bin and C:\Program Files\Java\jre7\server (the last entry is for jvm.dll file)
From R prompt I can see that RStudio is using 64-bit R
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)
> .Machine$sizeof.pointer
[1] 8
I can load rJava library just fine
> options(java.home="C:\\Program Files\\Java\\jre7\\")
> library(rJava)
Warning message:
package ‘rJava’ was built under R version 3.1.1
But when I try to install install bigR package on my machine and I am getting following error message
> 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
Any help to solve this problem will be much appreciated..