载入需要的程辑包:rJava
Error: package or namespace load failed for ‘rJava’:
loadNamespace()里算'rJava'时.onLoad失败了,详细内容:
调用: fun(libname, pkgname)
错误: JAVA_HOME cannot be determined from the Registry
Error: 无法载入程辑包‘rJava’
If you open the C:\Program Files\Java, and there is jre7 folder then please run ONE of below code (depend on you system)
Sys.setenv(JAVA_HOME='C:\\Program Files\\Java\\jre7') # for 64-bit version
Sys.setenv(JAVA_HOME='C:\\Program Files (x86)\\Java\\jre7') # for 32-bit version
If there is jre8 folder in the path, then you only need to change "7" to "8" and run. You will resolve it.