anchor.diff:     wget \
      sudo \
      libcurl4-openssl-dev \
  -   libxml2-dev 
  -
  -# we need TeX for the rmarkdown package in RStudio, and pandoc is also useful 
  -RUN apt-get update 
  -RUN DEBIAN_FRONTEND=noninteractive apt-get  install -y \
  +   libxml2-dev \
      texlive \
      texlive-base \
      texlive-latex-extra \
  
positive.code:     "forecast", \
      "formatR" \
      ), repos="http://cran.us.r-project.org")'
  
  
  RUN apt-get update 
  RUN DEBIAN_FRONTEND=noninteractive apt-get  install -y \
      libudunits2-dev
  
  RUN /usr/bin/R -e 'options(warn=2); install.packages(c( \
      "gdata", \
  
negative.code:    lmodern \
     pandoc \
  # dependency for R XML library
    libxml2 \
    libxml2-dev \
    libssl-dev \
    libfreetype6-dev \
    libudunits2-dev
  
  
  # set the locale so RStudio doesn't complain about UTF-8
  RUN apt-get install  -y locales 
  RUN locale-gen en_US en_US.UTF-8
  RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales
  
  # R-Studio
  RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gdebi-core
  RUN DEBIAN_FRONTEND=noninteractive wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.4.1717-amd64.deb
  RUN DEBIAN_FRONTEND=noninteractive gdebi --n rstudio-server-1.4.1717-amd64.deb
     
  # install packages via R scripts found in conf directory
  ADD ./conf /r-studio   
   
  
  RUN echo 'force rebuild of R packages'
  RUN /usr/bin/R -e 'options(warn=2); install.packages(c(  \
  