You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
How to solve the issue
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:
Install openjdk (including sources, which may be in a separate package from the JRE)
Run R CMD javareconf -e (or, alternatively, sudo R CMD javareconf) for R to search for the proper Java paths.
If the previous step fails (often due to a failure in finding jni.h), run echo $JAVA_HOME to make sure the environment variable is pointing to a valid openjdk version
Reload your R session
Once 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:
install.packages("DIscBIO")
Expected output
Output that ends in:
The name of the temporary directory, Rtmpgn8yf4, will probably be different in your case.
Obtained output
The text was updated successfully, but these errors were encountered: