rocker-org / rocker-versioned2

Run current & prior versions of R using docker. rocker/r-ver, rocker/rstudio, rocker/shiny, rocker/tidyverse, and so on.
https://rocker-project.org
GNU General Public License v2.0
406 stars 168 forks source link

Time zone settings are missing in docker image. R returns 'no Olson database found' #86

Closed aabor closed 3 years ago

aabor commented 4 years ago

I start docker container:

docker run -p8787:8787-e "USER=rstudio" -e "PASSWORD=123" --rm rocker/tidyverse:4.0.0-ubuntu18.04

than inside docker container I run the following RLanguage command in RStudio:

OlsonNames() character(0) Warning message: In OlsonNames() : no Olson database found

As a consequence all time dependent functions do not work, including for example read_csv from 'readr'

In docker image RStudio terminal I run:

cat /etc/timezone
Etc/UTC

Any work around?

> sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.4 LTS

Matrix products: default
BLAS/LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.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     

loaded via a namespace (and not attached):
[1] compiler_3.6.3 tools_3.6.3    tinytex_0.22   xfun_0.13 
cboettig commented 3 years ago

Can you please use one of the focal based images? 4.0.0-ubuntu18.04 tag is no longer actively supported.