I have made a package that uses XLConnect
. I can correctly install it here. However, when I try to install it on someone elses PC, I get an .onLoad failed
error. At first I got the .onload Failed
error also when I did library('rJava')
, but after installing the 64-bit version of Java libraray(rJava)
now works correctly. However, when trying to install my package I still get the same load error:
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: dirname(this$RuntimeLib)
error: a character vector argument expected
Error : package 'XLConnect' could not be loaded
Error: loading failed
Execution halted
*** arch - x64
both library(XLConnect)
and library(rJava)
work. Is there something else that can cause these types of errors?