Problem:
In the process of running R, you will typically need to invoke RJava.dll to run the virtual environment. For example, an error occurred while importing the package library (xlsx):
> Library (xlsx)
Load the required process package: Rjava
Error:package or namespace load failed for ' Rjava ':
Loadnamespace () in the "Rjava" when the onload failed, details:
Call: Indl (x, as.logical (local), as.logical (now), ...)
Error: Unable to load shared object ' D:/program Files (x86)/r/r-3.4.2/library/rjava/libs/x64/rjava.dll ':
LoadLibrary failure: The specified module could not be found.
Error: Unable to load process package ' Rjava '
Workaround:
This situation, is generally installed in the Java environment after the installation of other software to install the Java Class Library rjava.dll,r of the runtime environment can not invoke confirmation. Find your own installed Java environment to configure the RJava.dll in the system environment of R:
>sys.setenv (java_home= ' D:/program Files (x86)/java/jdk1.8.0_144/jre ')
Run the library again (xlsx) and it's OK.
>library (xlsx)
Load the required process package: Rjava
Load the required process package: Xlsxjars