rJava
and xlsx
are
difficult to install. so I made this package to separate dependencies of
these packages from some package.The following code makes rJava
work fine, but I am not
sure that this is effective for others.
if(Sys.getenv("JAVA_HOME")!=""){
Sys.setenv(JAVA_HOME="")
}
The above code is effective for my following error
i Loading pkg
Error: Dependency package(s) 'xlsx' not available.
Run `rlang::last_error()` to see where the error occurred.
In addition: Warning message:
In (function (dep_name, dep_ver = "*") :
Dependency package 'xlsx' not available.
For error of rJava
, the above code is also
effective.
NOTE: As the environment variable JAVA_HOME
, the path
C:\Program Files (x86)\Java\jre1.8.0_311
is not correct ….I
also tried jdk.