Git Product home page Git Product logo

Comments (5)

terrytangyuan avatar terrytangyuan commented on September 17, 2024

@zachmayer I added unit test for the plotting but it looks like in Travis it cannot open the plotting device. Error: RGL: unable to open X11 display in this build https://travis-ci.org/terrytangyuan/lfda/builds/75081008

Do you have any idea to get around with this?

from lfda.

zachmayer avatar zachmayer commented on September 17, 2024

https://cran.r-project.org/web/packages/rgl/index.html

Check the "system requirements" page:
SystemRequirements: OpenGL, GLU Library, zlib (optional), libpng (>=1.2.9, optional), FreeType (optional)

You also need X11. You need to run something like this (from the travis help page):

before_install:
    - sudo apt-get update -qq
    - sudo apt-get install -qq freeglut3-dev xorg openbox

freeglut3-dev will install openGL and GLU, the other 2 will install X11.

from lfda.

zachmayer avatar zachmayer commented on September 17, 2024

(btw, this is why we don't want caret to depend on rgl— it's a lot of effort to get installed)

from lfda.

terrytangyuan avatar terrytangyuan commented on September 17, 2024

Hmm I couldn't get it to work by adding before_install in Travis and options(rgl.useNULL=TRUE) in the plotting code. The code work fine by devtools::test() and devtools::check() though on my PC. Would this be enough for CRAN submission? Are they looking at my Travis build?

from lfda.

zachmayer avatar zachmayer commented on September 17, 2024

CRAN will be checking on a machine very much like the travis machine. It won't have an rgl environment setup.

from lfda.

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.