Closed wleoncio closed 3 years ago
This is common to all R packages dependent on rJava, which is often a PITA to install. If you try to install another such package, e.g. rcdk, a similar problem will occur.
This type of error usually happens because the user's R installation cannot properly see all Java paths. It is an Operating System problem, which CRAN has no control over and thus doesn't prevent a package from being published on CRAN.
It is up to the user to solve the issue for their Operating System, and sites like stackoverflow are full of posts relating the problem and proposing solutions. Also, taking a closer look at the full output will often lead to some proposals from R itself. For instance, on Linux (and maybe macOS) you should:
openjdk
(including sources
, which may be in a separate package from the JRE)R CMD javareconf -e
(or, alternatively, sudo R CMD javareconf
) for R to search for the proper Java paths.jni.h
), run echo $JAVA_HOME
to make sure the environment variable is pointing to a valid openjdk versionOnce install.packages("rJava")
runs successfully, you'll be able to install DIscBIO. If it doesn't, try closing and reopening R (so it picks up the proper Java paths). If you still run into problems, please post below.
Describe the bug
Installation of DIscBIO from CRAN fails.
Steps to Reproduce
From an R interactive session, run:
Expected output
Output that ends in:
The name of the temporary directory, Rtmpgn8yf4, will probably be different in your case.
Obtained output