Something is weird, I do have rJava
, and I can load it. But when I tried to reinstall it, I get the next error:
Error: package or namespace load failed for ‘rJava’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/home/user1/R/x86_64-koji-linux-gnu-library/4.0/00LOCK-rJava/00new/rJava/libs/rJava.so':
libiconv.so.2: cannot open shared object file: No such file or directory
So I found libiconv.so.2
, and add it to the ld path, but then I get another error when I try to reinstall rJava
:
Error: package or namespace load failed for ‘rJava’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/home/user1/R/x86_64-koji-linux-gnu-library/4.0/00LOCK-rJava/00new/rJava/libs/rJava.so':
/home/user1/R/x86_64-koji-linux-gnu-library/4.0/00LOCK-rJava/00new/rJava/libs/rJava.so: undefined symbol: JNI_GetDefaultJavaVMInitArgs
Error: loading failed
So maybe it’s related to some other installations (working on Linux). Do you have any clue?