Comments (3)
@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.
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")
ordevtools::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:
- Use the
rocker/geospatial
image where these system-dependencies are pre-installed - When 'sf' is required, install proj4 and gdal from source if not pre-installed.
- Use the
-
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.
@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)
- File not found using CMD_RScript to run the R script on start-up HOT 1
- E: Repository 'http://cdn-fastly.deb.debian.org/debian testing InRelease' changed its 'Codename' value from 'buster' to 'bullseye' HOT 1
- Evaluate dockerfiler for creation of Dockerfile
- Custom COPY additions not exported HOT 3
- Fix installed package detection for plumber image
- dockerfile adding a make depedency on Windows vs not on OSX HOT 3
- Compare remotes::install_version(..) with versions::install.versions(..)
- Add support for Alpine base images
- Add option to use hadley/requirements instead of document execution
- Add support for renv HOT 2
- Evaluate rstudio/r-system-requirements
- Re-use output parameters of R Markdown headers as part of CMD_Render
- Typos in containerit.Rmd HOT 8
- Add option to use attachment for finding dependencies
- Reticulate and python dependencies
- Create a target factory / integration with the targetopia
- Try out system requirements function from package remotes
- Switch tests to r-ci
- DESCRIPTION without Depends
- Sysreqs calls are too many if lots of deps HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from containerit.