SAP Predictive Analytics - JRI interface issue #278
-
Hello, I must use SAP Predictive Analytics for school. I am installing SAP.PA version 3.3.7, which requires R version 3.4. I am having a JRI interface issue when trying to run an R-linear regression. I have traced the issue to not having the rJava package in my R library. When I try to install via Packages>install packages in R, rJava is not in the list. I have tried to install version 1.0-1 with rJava_1.0-1.tar.jz also with Packages>Install packages from local files and I get an error stating rJava requires R version 3.6 or higher. I have tried using the newer version of R and integrating it into SAP.PA to no avail. I also attempted to install rJava_0.9-7.tar.jz and that installation fails also. Here is the text from the 0.9-7 installation failure:
Does anyone have any thoughts? I'm hoping SAP hasn't updated Predictive Analytics past a useable R version. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@aaronkrech it looks like a permission issue - you don't seem to have permission to install packages in the library you are using. You should install it into your own personal library instead. You really want to use the CRAN binary version, because compiling Java from sources is non-trivial on Windows (you need tools, JDK, etc.) - and it is not necessary. Microsoft provides an archive of binaries MRAN Timemachine, so for R 3.4.4 the following was the binary at the time which you could try: https://cran.microsoft.com/snapshot/2018-04-01/bin/windows/contrib/3.4/rJava_0.9-9.zip Note that you still have to fix your permission issues fist. You can also use the above as a mirror by using install.packages("rJava", repos="https://cran.microsoft.com/snapshot/2018-04-01") |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
@aaronkrech it looks like a permission issue - you don't seem to have permission to install packages in the library you are using. You should install it into your own personal library instead.
You really want to use the CRAN binary version, because compiling Java from sources is non-trivial on Windows (you need tools, JDK, etc.) - and it is not necessary.
Microsoft provides an archive of binaries MRAN Timemachine, so for R 3.4.4 the following was the binary at the time which you could try:
https://cran.microsoft.com/snapshot/2018-04-01/bin/windows/contrib/3.4/rJava_0.9-9.zip
Note that you still have to fix your permission issues fist. You can also use the above as a mirror by using