.onLoad failed in loadNamespace() for 'rJava' code example Example: rjava error Sys.setenv(JAVA_HOME='C:\\Program Files\\Java\\jre1.8.0_144')