Loading required package: rJava Error: package or namespace load failed for ‘rJava’: .onLoad failed in loadNamespace() for 'rJava', details: call: fun(libname, pkgname) error: JAVA_HOME cannot be determined from the Registry code example
Example: rjava error
Sys.setenv(JAVA_HOME='C:\\Program Files\\Java\\jre1.8.0_144')