I've installed the rJava pack successfully. However, when I run the command library(rJava)
, I get the following error.
> library(rJava) Error : .onLoad failed in loadNamespace() for 'rJava', details: call: fun(libname, pkgname) error: JAVA_HOME
cannot be determined from the Registry Error: package or namespace
load failed for ‘rJava’
How can I solve this issue?