Comments (9)
Works for me (tested today):
$ docker run -it rocker/geospatial R
R version 3.4.0 (2017-04-21) -- "You Stupid Darkness"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library("sf")
Linking to GEOS 3.5.1, GDAL 2.1.3, proj.4 4.8.0
> sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 8 (jessie)
Matrix products: default
BLAS/LAPACK: /usr/lib/libopenblasp-r0.2.12.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=C
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] sf_0.4-2
loaded via a namespace (and not attached):
[1] compiler_3.4.0 magrittr_1.5 tools_3.4.0 DBI_0.6-1 units_0.4-4
[6] Rcpp_0.12.10 udunits2_0.13 grid_3.4.0
from geospatial.
Yes, this is a version thing with GEOS (working for GEOS > 3.5.0 only), addressed here fixed on GH; will submit to CRAN in a few days.
from geospatial.
@edzer cool, thanks! Looks like things build fine if we install GEOS 3.5.1 from source (https://github.com/rocker-org/geospatial/blob/master/Dockerfile#L39); though sounds like that won't be necessary after your next release. Just wondering if there's good reason to provide the newer GEOS version (could go for 3.6.1) or if in general we're fine sticking with the v3.3 from the debian repos?
from geospatial.
(Complete aside: If you two gentlemen ever have too much funding, set up a workshop and I can do a walk-through on how to solve that with proper [local] .deb packages. It is the missing link you have here, and addressable easily enough. Of course, working from source works too -- but we do like versioned packages on input too.)
from geospatial.
@eddelbuettel thanks, that would be awesome. One difficulty I've had when pulling in more recent .deb
binaries for these development libraries on the Jessie images (e.g. via apt-pinning) is that those binaries have been usually been built with newer versions of the compilers than what is already installed on the container. This means that R packages can hit errors compiling against those dev libraries if we don't also update the whole compiler stack, which balloons the image size (and at which point one may as well just start with debian:testing
-- which is of course what you've suggested from the beginning; though it that involves different challenges)
from geospatial.
It's sort-of more acute with Ubuntu if and when you upgrade every six months as I do -- but then the (free) PPA service can build for all those version. It is pretty fabulous and I use that for all my Travis needs when I need newer, or otherwise unpackaged, binaries.
Docker is a little different and "should" be simpler -- you may just need one repo to supply, say, newer binaries as here with geos. One could easily construct something like my drat (for R) by using GitHub and its super-reliable web serving to provide add-on .deb repos for use by Debian (and then, say, in Docker).
Ah, another project and another paper to write ... One day, maybe.
from geospatial.
@cboettig GEOS 3.3.0 is sufficient; CRAN is also a wild mix of versions >= 3.3.0. For most practical work, I use the ubuntugis or ubuntugis-unstable ppa.
from geospatial.
This issue should be solved by sf 0.4-1 on CRAN, and #3
from geospatial.
Thanks, looking okay on my end as well, closing this out
from geospatial.
Related Issues (20)
- Add ncdf4? HOT 9
- Failing builds on versioned images HOT 2
- Build is failing HOT 12
- lwgeom not on latest build HOT 16
- Shiny Application Not Exposing Port 3838 in Docker Swarm HOT 18
- Plans to update to python 3.6 or 3.7? HOT 4
- Remove build-deps after install to reduce image size HOT 3
- GDAL, GEOS and PROJ versions HOT 23
- ERROR_CONNECTION_REFUSED when trying to open Rstudio server in browser HOT 2
- spatialreg package support HOT 2
- cannot read hdf4file HOT 1
- Start image without starting RStudio HOT 3
- Building container fails. HOT 3
- proj6 HOT 3
- Builds for different versions of GDAL, PROJ, GEOS HOT 73
- Mapping linux tools to R packages HOT 2
- Request: rocker/geoverse = rocker/geospatial + rocker/verse additions HOT 3
- Add tmap HOT 4
- consider adding ggsn?
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 geospatial.