CDK-R / rinchi

An R wrapper around the InChI functionality provided by the rcdk
1 stars 2 forks source link

Failed to install rinchi package #2

Closed QizhiSu closed 4 years ago

QizhiSu commented 4 years ago

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:

library(rJava) install.packages("remotes") Installing package into ‘C:/Users/qizhi/OneDrive/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/remotes_2.1.1.zip' Content type 'application/zip' length 358520 bytes (350 KB) downloaded 350 KB

package ‘remotes’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in C:\Users\qizhi\AppData\Local\Temp\RtmpymVbdl\downloaded_packages

remotes::install_github("CDK-R/rinchi") Downloading GitHub repo CDK-R/rinchi@master √ checking for file 'C:\Users\qizhi\AppData\Local\Temp\RtmpymVbdl\remotes1b844637fca\CDK-R-rinchi-d51bd48/DESCRIPTION'

  • preparing 'rinchi': √ checking DESCRIPTION meta-information ...
  • checking for LF line-endings in source and make files and shell scripts
  • checking for empty or unneeded directories
  • building 'rinchi_0.5.tar.gz'

Installing package into ‘C:/Users/qizhi/OneDrive/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified)

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.

QizhiSu commented 4 years ago

@rajarshi @sneumann Hi, Could you guys help?

sneumann commented 4 years ago

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

QizhiSu commented 4 years ago

I have run the two commands, they work fine. see the attachment, please. image

sneumann commented 4 years ago

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

rajarshi commented 4 years ago

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?

rajarshi commented 4 years ago

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)

QizhiSu commented 4 years ago

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.

rajarshi commented 4 years ago

Closing this issue as it seems to be resolved