Coder Social home page Coder Social logo

Comments (3)

MatthiasHinz avatar MatthiasHinz commented on May 20, 2024 1

@edzer Thank you for the hints! I did not know about the installation behavior, especially. It's clear that CRAN is the preferred repository to use, but still, we also want to support GitHub installations.

The point is that we planned to use the markdown document above for our test-cases. But now I realize that it's not a good example. We require any code that we containerize to run at least on our local system so that we can detect the dependencies for the Dockerfile, and this is not given. Also, the test-markdown relies on an outdated version of 'sf' and we couldn't handle this as a dependency for an integrated package test. So, maybe I should leave it and use something else for testing.

from containerit.

MatthiasHinz avatar MatthiasHinz commented on May 20, 2024

There are multiple issues with the markdown file in markdowntainer-sfr:

  • I am not able to install the latest 'rgdal2' from gitbub (i.e. via devtools::install_github("thk686/rgdal2") or devtools::install_github("thk686/rgdal2")), even when going back to previous commits. Perhaps it's a problem roxygen2. Therfore, I am not able to render the markdown even locally
    --> Issue: thk686/rgdal2#9

  • The sf-library requires up-to-date versions of proj4 and gdal, therefore the installation via apt-get is not sufficient. Neither does the sysreqs-package supply such information, so the packaging would fail at the moment. There are two workarounds:

    1. Use the rocker/geospatial image where these system-dependencies are pre-installed
    2. When 'sf' is required, install proj4 and gdal from source if not pre-installed.
  • Currently, we may have concurrent versions of proj4 and gdal, because apt-get will install the packages even if newer versions of them were installed from source. However, from my testing, always the latest versions of gdal/proj are detected, so that the configuration will still work like this and the problem can be treated as a minor issue.

  • github-dependencies are not yet supported by containerit

---> I will go back on this when issues are solved.

from containerit.

edzer avatar edzer commented on May 20, 2024

@MatthiasHinz I don't think you'll need rgdal2, it is not being used in real life projects.

For sf, a third alternative (assuming you use ubuntu) is to use ubuntugis; see sfr's travis file.

Installing stuff from source by default puts it in /usr/local/, where apt-get puts it in /usr/; normally /usr/local/ is searched first for including, linking or running.

I think it is considered good scientific practice to use R packages from CRAN, rather than from github, since you can't mess with its archive.

from containerit.

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.