GithubHelp home page GithubHelp logo

DIscBIO doesn't install about discbio HOT 1 CLOSED

ocbe-uio avatar ocbe-uio commented on June 23, 2024
DIscBIO doesn't install

from discbio.

Comments (1)

wleoncio avatar wleoncio commented on June 23, 2024

Explaining the error

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:

  1. Install openjdk (including sources, which may be in a separate package from the JRE)
  2. Run R CMD javareconf -e (or, alternatively, sudo R CMD javareconf) for R to search for the proper Java paths.
  3. 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.

from discbio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.