R - Error : .onLoad failed in loadNamespace() for 'rJava'

前端 未结 6 1195
北荒
北荒 2020-11-28 09:45

While loading rJava package, I receive this error:

Error : .onLoad failed in loadNamespace() for \'rJava\', details:
  call: inDL(x         


        
6条回答
  •  醉话见心
    2020-11-28 10:29

    I guess your OS architecture and R architecture are not matching. If they are matching, the following might be the problem

    It worked for me after i added the R library path to the environment variables list on my windows 7.

    So,

    Add 'C:/Users/Rohan-PC/Documents/R/win-library/3.1' this path to the Path variables list under System variables list(not to be confused with the PATH variable under User variables). Restart R and try loading the library. It works!!!!!

提交回复
热议问题