Closed QizhiSu closed 4 years ago
@rajarshi @sneumann Hi, Could you guys help?
Hi, looking at the errors I'd like to see confirmation that rJava is indeed installed properly. Can you check the following commands in a fresh R session:
library(rJava)
.jinit()
Yours, Steffen
I have run the two commands, they work fine. see the attachment, please.
As non-Windows user I am out of ideas. Just one more thing, please copy&paste
the output of sessionInfo()
after the .jinit call here. If you copy the text, rather than a screenshot,
the text can be found via google or github search, which will benefit attracting help.
Yours, Steffen
Hi @Sukis123 - sorry for the delay in getting back to you. Unfortunately I don't have a Windows machine to test this. I did try using the Rhub service but it failed to build there (output log) due to an rjava
issue.
The only thing I can guess is that it may be related to JAVA_HOME
Maybe @zachcp has some experience with this?
So it looks the win-builder service was able to build a Windows package, which I've placed in the repository. Take a look and see if that installs for you (so you don't need to build from sources)
Thanks a lot. it seems that rinchi was trying to load the 32 bit rJava.dll but not the 64 bit one. I have checked that the 64 bit one is available as well.
I have downloaded the rinchi_0.5.zip now. it works fine.
thank you very much.
Closing this issue as it seems to be resolved
Dear rinchi developer, I failed to install rinchi package. I am using windows 10 64 bit, jdk 11.0.6 (64 bit), and R 3.6.3 (64 bit). below are the code and error I got:
package ‘remotes’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in C:\Users\qizhi\AppData\Local\Temp\RtmpymVbdl\downloaded_packages
Installing package into ‘C:/Users/qizhi/OneDrive/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified)
parseinchi html
building package indices * testing if installed package can be loaded from temporary location arch - i386 Error: package or namespace load failed for 'rinchi': .onLoad failed in loadNamespace() for 'rJava', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'C:/Users/qizhi/OneDrive/Documents/R/win-library/3.6/rJava/libs/i386/rJava.dll': LoadLibrary failure: %1 is not a valid Win32 application.
Error: loading failed Execution halted *** arch - x64 ERROR: loading failed for 'i386'
I have checked online for possible reasons causing this error. many of them said JAVA_HOME has not been set properly. however, I have set it properly to my jdk-11.0.6 folder and I don't have problem librarying rJava package.