Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem loading rJava

Tags:

r

Yesterday I removed R2.11 from my system (Win7, 64bit), since I´m working on R2.13.

Since then i get an error message:

> require(rJava)
Lade nötiges Paket: rJava
Error : .onLoad in loadNamespace() fehlgechlagen, Details:
  Aufruf: rJava
  Fehler: inDL(x, as.logical(local), as.logical(now), ...)

I tried specifying PATH, since I found on the internet that it might have something to do with jvm.dll:

c:\Rtools\bin;
c:\Rtools\perl\bin;
c:\Rtools\MinGW\bin;
c:\Rtools\MinGW64\bin;
C:\Windows\system32;
%R_HOME%\bin;
C:\Program Files\R\R-2.13.0\bin; 
C:\Program Files\Java\jre6\bin\server

However I could not solve the problem... I also can´t run R from the win command line (just type "R"?)

Any suggestions?

like image 320
EDi Avatar asked Jun 27 '11 11:06

EDi


1 Answers

My problem was solved by

install.packages("SqlRender",INSTALL_opts="--no-multiarch")

It was a package that depends on rJava and all advices were telling me to fix Java installation. But the solution was to use install option that simply forgets about i386 architecture. (also works with drat library and packages not from CRAN)

like image 142
userJT Avatar answered Nov 03 '22 01:11

userJT