
Still I'm curious where that magical config.log file is located, perhaps that would have pointed out my mistake right away. From the Start Menu, Start R / RGUI, RStudio. And then running R and 'install.package('rJava')' worked without trouble. Re-launch R from the Windows Menu If R is running, quit. If you have Java in Program Files (x86), that's 32-bit, so you use plain 32-bit R. Don’t worry about jdk-10.0.1 as this might change for future releases. To be safe, make sure your architectures match.If you have Java in Program Files, it is 64-bit, so you ought to run R64. An alternative package that you can use is readxl. Set your JAVA_HOME environment with Sys.setenv(JAVA_HOME="C:/Program Files/Java/jdk-10.0.1/") so that it points to your specific (64-bit in my case) folder that contains the jdk. Problems when trying to load a package in R due to rJava (6).
Trouble rjava in r install#
Install rJava with install.packages("rJava"). Conversely, if you installed 64-bit then everything should be installed in C:/Program Files/Java/. In addition this allows the use of class path modifying function. Moreover, I run Java 5.0 and the RWeka package 0.4-1 and rJava 0.8-4. If you installed 32-bit Java then everything should be saved in C:/Program Files (x86)/Java/. Starting with version 0.5 rJava provides a custom class loader that can automatically track classes and native libraries that are provided in R packages. Dear R-users, I am running R 2.10.1 under Windows XP Professional. For 64-bit I had to download the Windows version from here. But in many cases, these problems are easily solved in R thanks to its various packages which are supported by worldwide experts. Among them are financial or econometric model estimation or optimization, to name a few.
Trouble rjava in r 64 Bit#
I had 64 bit so I downloaded the Offline 64-bit version from here.ĭownload Java JDK for 32/64 bit. Using R code in Java Eclipse with rJava Occasionally we would encounter some problems which are not easy to implement in Java. R and Java must have the same memory signature, either 32 or 64 bit. R from CRAN is installed by default both in 32-bit and 64-bit versions so if in doubt.

Check Platform.ĭownload the specific 32/64 bit of Java. If I recall, I had trouble installing Java using apt-get so I built from source and thats probably the source (all puns intended) of my problems. Please make sure you install Java that matches your R architecture. Post here the steps that made it work in case anyone is interested (that is, future me).Ĭheck whether R is 32/64 bit with sessionInfo().

Trouble rjava in r windows 10#
Struggled for about two hours to install rJava on my Windows 10 machine.
