anchor.diff:  # environmental variable ($VNCPASS) passed in when the containers is instantiated
   ADD initialize.sh /
   
  -# 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
  -
   
   #########
   #
  
positive.code: RUN rm /install-igraph.Rout 
  
  # install sparklyr so we can do Spark via Livy
  RUN DEBIAN_FRONTEND=noninteractive wget \
     https://archive.linux.duke.edu/cran/src/contrib/config_0.3.tar.gz \
     https://archive.linux.duke.edu/cran/src/contrib/dbplyr_1.4.1.tar.gz \
     https://archive.linux.duke.edu/cran/src/contrib/rappdirs_0.3.1.tar.gz \
     https://archive.linux.duke.edu/cran/src/contrib/r2d3_0.2.3.tar.gz \
     https://archive.linux.duke.edu/cran/src/contrib/forge_0.2.0.tar.gz \
     https://archive.linux.duke.edu/cran/src/contrib/sparklyr_1.0.1.tar.gz
     
  RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
     config_0.3.tar.gz \
     dbplyr_1.4.1.tar.gz \
     rappdirs_0.3.1.tar.gz \
     r2d3_0.2.3.tar.gz \
     forge_0.2.0.tar.gz \
     sparklyr_1.0.1.tar.gz
     
  RUN rm \
    config_0.3.tar.gz \
    dbplyr_1.4.1.tar.gz \
    rappdirs_0.3.1.tar.gz \
    r2d3_0.2.3.tar.gz \
    forge_0.2.0.tar.gz \
    sparklyr_1.0.1.tar.gz
  
  
  # some more TeX so that papaja can be installed and students can create APA templates in Rmarkdown
  RUN apt-get update 
  RUN DEBIAN_FRONTEND=noninteractive apt-get  install -y \
     texlive \
     texlive-publishers \
     texlive-fonts-extra \
     texlive-latex-extra \
     texlive-humanities \
     lmodern 
  # papaja
  RUN R CMD BATCH /r-studio/install-papaja.R
  RUN rm /install-papaja.Rout
  
  # install templates and examples from Reed and the Tufte package
  RUN DEBIAN_FRONTEND=noninteractive wget \
     https://archive.linux.duke.edu/cran/src/contrib/BHH2_2016.05.31.tar.gz
     
  RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
     BHH2_2016.05.31.tar.gz
     
  RUN rm \
    BHH2_2016.05.31.tar.gz
    
  RUN R CMD BATCH /r-studio/install-reed.R
  RUN rm /install-reed.Rout 
  
  
  # a couple dependencies for Eric Greene's tidycensus
  RUN apt-get update 
  RUN DEBIAN_FRONTEND=noninteractive apt-get  install -y \
  	libproj-dev \
  	libudunits2-0 \
  	libudunits2-dev \
  	software-properties-common
   
  # we need gdal > 2
  RUN  add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
  RUN  apt-get update 
  RUN DEBIAN_FRONTEND=noninteractive apt-get  install -y \
      gdal-bin \
      python-gdal \
      libgdal-dev
  
  	
  RUN DEBIAN_FRONTEND=noninteractive wget \
     https://archive.linux.duke.edu/cran/src/contrib/rgdal_1.4-4.tar.gz \
     https://cran.r-project.org/src/contrib/Archive/rgeos/rgeos_0.3-28.tar.gz \
     https://archive.linux.duke.edu/cran/src/contrib/uuid_0.1-2.tar.gz
   
   
  RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
     rgdal_1.4-4.tar.gz \
     rgeos_0.3-28.tar.gz \
     uuid_0.1-2.tar.gz 
  
  RUN rm \
     rgdal_1.4-4.tar.gz \
     rgeos_0.3-28.tar.gz \
     uuid_0.1-2.tar.gz
  
  RUN R CMD BATCH /r-studio/install-rappdirs.R
  RUN rm /install-rappdirs.Rout 
  
  RUN DEBIAN_FRONTEND=noninteractive wget \
      https://archive.linux.duke.edu/cran/src/contrib/tigris_0.8.2.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/tidycensus_0.9.2.tar.gz
  
  RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
      tigris_0.8.2.tar.gz \
      tidycensus_0.9.2.tar.gz 
  
  RUN rm \
      tigris_0.8.2.tar.gz  \
      tidycensus_0.9.2.tar.gz 
  	
  # new packages for fall 2018
  RUN DEBIAN_FRONTEND=noninteractive wget \
      https://archive.linux.duke.edu/cran/src/contrib/tidyverse_1.2.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/promises_1.0.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/future_1.13.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/doMC_1.3.5.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/foreach_1.4.4.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/doParallel_1.0.14.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/furrr_0.1.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/drat_0.1.5.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/tidygraph_1.1.2.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/here_0.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/rticles_0.8.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/styler_1.1.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/lintr_1.0.3.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/testthat_2.1.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/reprex_0.3.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/microbenchmark_1.4-6.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/modelr_0.1.4.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/globals_0.12.4.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/listenv_0.7.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/iterators_1.0.10.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/enc_0.2.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/rematch2_2.0.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/rex_1.1.2.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/stringdist_0.9.5.2.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/praise_1.0.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/profmem_0.5.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/bench_1.0.2.tar.gz 
  
  RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
      modelr_0.1.4.tar.gz \
      prex_0.2.0.tar.gz \
      reprex_0.3.0.tar.gz \
      tidyverse_1.2.1.tar.gz \
      promises_1.0.1.tar.gz \
      globals_0.12.4.tar.gz \
      listenv_0.7.0.tar.gz \
      future_1.13.0.tar.gz \
      iterators_1.0.10.tar.gz \
      foreach_1.4.4.tar.gz \
      doMC_1.3.5.tar.gz \
      doParallel_1.0.14.tar.gz \
      furrr_0.1.0.tar.gz \
      drat_0.1.5.tar.gz \
      tidygraph_1.1.2.tar.gz \
      here_0.1.tar.gz \
      rticles_0.8.tar.gz \
      enc_0.2.0.tar.gz \
      rematch2_2.0.1.tar.gz \
      styler_1.1.1.tar.gz \
      rex_1.1.2.tar.gz \
      stringdist_0.9.5.2.tar.gz \
      praise_1.0.0.tar.gz \
      testthat_2.1.1.tar.gz \
      lintr_1.0.3.tar.gz \
      profmem_0.5.0.tar.gz \
      microbenchmark_1.4-6.tar.gz \
      bench_1.0.2.tar.gz 
  
  RUN rm \
      modelr_0.1.4.tar.gz \
      profmem_0.5.0.tar.gz \
      praise_1.0.0.tar.gz \
      rex_1.1.2.tar.gz \
      stringdist_0.9.5.2.tar.gz \
      enc_0.2.0.tar.gz \
      rematch2_2.0.1.tar.gz \
      globals_0.12.4.tar.gz \
      iterators_1.0.10.tar.gz \
      listenv_0.7.0.tar.gz \
      tidyverse_1.2.1.tar.gz \
      promises_1.0.1.tar.gz \
      future_1.13.0.tar.gz \
      doMC_1.3.5.tar.gz \
      foreach_1.4.4.tar.gz \
      doParallel_1.0.14.tar.gz \
      furrr_0.1.0.tar.gz \
      drat_0.1.5.tar.gz \
      tidygraph_1.1.2.tar.gz \
      here_0.1.tar.gz \
      rticles_0.8.tar.gz \
      styler_1.1.1.tar.gz \
      lintr_1.0.3.tar.gz \
      testthat_2.1.1.tar.gz \
      reprex_0.3.0.tar.gz \
      microbenchmark_1.4-6.tar.gz \
      bench_1.0.2.tar.gz 
  
  
  RUN DEBIAN_FRONTEND=noninteractive wget \
      https://archive.linux.duke.edu/cran/src/contrib/pryr_0.1.4.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/profvis_0.3.6.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/RcppArmadillo_0.9.500.2.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/servr_0.14.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/xaringan_0.10.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/rsconnect_0.8.13.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/PKI_0.1-5.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/RJSONIO_1.3-1.2.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/packrat_0.5.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/highlight_0.4.7.2.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/pkgdown_1.3.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/bookdown_0.11.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/blogdown_0.13.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/cowplot_0.9.4.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/influenceR_0.1.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/Rook_1.1-1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/rgexf_0.15.3.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/visNetwork_2.0.7.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/DiagrammeR_1.0.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/farver_1.1.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/tweenr_1.0.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/polyclip_1.10-0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/ggforce_0.2.2.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/RgoogleMaps_1.4.3.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/rjson_0.2.20.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/mapproj_1.2.6.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/jpeg_0.1-8.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/geosphere_1.5-10.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/ggmap_3.0.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/ggraph_1.0.2.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/shiny_1.3.2.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/shinyjs_1.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/flexdashboard_0.5.1.1.tar.gz 
  
  RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
      pryr_0.1.4.tar.gz \
      profvis_0.3.6.tar.gz \
      RcppArmadillo_0.9.500.2.0.tar.gz \
      servr_0.14.tar.gz \
      xaringan_0.10.tar.gz \
      PKI_0.1-5.1.tar.gz \
      RJSONIO_1.3-1.2.tar.gz \
      packrat_0.5.0.tar.gz \
      rsconnect_0.8.13.tar.gz \
      highlight_0.4.7.2.tar.gz \
      pkgdown_1.3.0.tar.gz \
      bookdown_0.11.tar.gz \
      blogdown_0.13.tar.gz \
      cowplot_0.9.4.tar.gz \
      influenceR_0.1.0.tar.gz \
      Rook_1.1-1.tar.gz \
      rgexf_0.15.3.tar.gz \
      visNetwork_2.0.7.tar.gz \
      DiagrammeR_1.0.1.tar.gz \
      farver_1.1.0.tar.gz \
      tweenr_1.0.1.tar.gz \
      polyclip_1.10-0.tar.gz \
      ggforce_0.2.2.tar.gz \
      jpeg_0.1-8.tar.gz \
      RgoogleMaps_1.4.3.tar.gz \
      rjson_0.2.20.tar.gz \
      mapproj_1.2.6.tar.gz \
      geosphere_1.5-10.tar.gz \
      ggmap_3.0.0.tar.gz \
      ggraph_1.0.2.tar.gz \
      shiny_1.3.2.tar.gz \
      shinyjs_1.0.tar.gz \
      flexdashboard_0.5.1.1.tar.gz 
  
  RUN rm \
      pryr_0.1.4.tar.gz \
      profvis_0.3.6.tar.gz \
      RcppArmadillo_0.9.500.2.0.tar.gz \
      servr_0.14.tar.gz \
      xaringan_0.10.tar.gz \
      PKI_0.1-5.1.tar.gz \
      RJSONIO_1.3-1.2.tar.gz \
      packrat_0.5.0.tar.gz \
      rsconnect_0.8.13.tar.gz \
      highlight_0.4.7.2.tar.gz \
      pkgdown_1.3.0.tar.gz \
      bookdown_0.11.tar.gz \
      blogdown_0.13.tar.gz \
      cowplot_0.9.4.tar.gz \
      influenceR_0.1.0.tar.gz \
      Rook_1.1-1.tar.gz \
      rgexf_0.15.3.tar.gz \
      visNetwork_2.0.7.tar.gz \
      DiagrammeR_1.0.1.tar.gz \
      farver_1.1.0.tar.gz \
      tweenr_1.0.1.tar.gz \
      polyclip_1.10-0.tar.gz \
      ggforce_0.2.2.tar.gz \
      RgoogleMaps_1.4.3.tar.gz \
      rjson_0.2.20.tar.gz \
      mapproj_1.2.6.tar.gz \
      jpeg_0.1-8.tar.gz \
      geosphere_1.5-10.tar.gz \
      ggmap_3.0.0.tar.gz \
      ggraph_1.0.2.tar.gz \
      shiny_1.3.2.tar.gz \
      shinyjs_1.0.tar.gz \
      flexdashboard_0.5.1.1.tar.gz 
  
  RUN DEBIAN_FRONTEND=noninteractive wget \
      https://archive.linux.duke.edu/cran/src/contrib/nycflights13_1.0.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/babynames_1.0.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/janeaustenr_0.1.5.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/NHANES_2.1.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/repurrrsive_0.1.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/infer_0.4.0.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/ipred_0.9-9.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/numDeriv_2016.8-1.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/SQUAREM_2017.10-1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/lava_1.6.5.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/prodlim_2018.04.18.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/kernlab_0.9-27.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/CVST_0.2-2.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/DRR_0.0.3.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/dimRed_0.2.3.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/timeDate_3043.102.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/sfsmisc_1.1-4.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/magic_1.5-9.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/lpSolve_5.6.13.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/RcppProgress_0.4.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/geometry_0.4.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/DEoptimR_1.0-8.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/robustbase_0.93-5.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/ddalpha_1.3.9.tar.gz 
  
  RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
      nycflights13_1.0.0.tar.gz \
      babynames_1.0.0.tar.gz \
      janeaustenr_0.1.5.tar.gz \
      NHANES_2.1.0.tar.gz \
      repurrrsive_0.1.0.tar.gz \
      infer_0.4.0.1.tar.gz \
      numDeriv_2016.8-1.1.tar.gz \
      SQUAREM_2017.10-1.tar.gz \
      lava_1.6.5.tar.gz \
      prodlim_2018.04.18.tar.gz \
      ipred_0.9-9.tar.gz \
      kernlab_0.9-27.tar.gz \
      CVST_0.2-2.tar.gz \
      DRR_0.0.3.tar.gz \
      dimRed_0.2.3.tar.gz \
      timeDate_3043.102.tar.gz \
      sfsmisc_1.1-4.tar.gz \
      magic_1.5-9.tar.gz \
      lpSolve_5.6.13.1.tar.gz \
      RcppProgress_0.4.1.tar.gz \
      geometry_0.4.1.tar.gz \
      DEoptimR_1.0-8.tar.gz \
      robustbase_0.93-5.tar.gz \
      ddalpha_1.3.9.tar.gz 
  	
  RUN rm \
      nycflights13_1.0.0.tar.gz \
      babynames_1.0.0.tar.gz \
      janeaustenr_0.1.5.tar.gz \
      NHANES_2.1.0.tar.gz \
      repurrrsive_0.1.0.tar.gz \
      infer_0.4.0.1.tar.gz \
      numDeriv_2016.8-1.1.tar.gz \
      SQUAREM_2017.10-1.tar.gz \
      lava_1.6.5.tar.gz \
      prodlim_2018.04.18.tar.gz \
      ipred_0.9-9.tar.gz \
      kernlab_0.9-27.tar.gz \
      CVST_0.2-2.tar.gz \
      DRR_0.0.3.tar.gz \
      dimRed_0.2.3.tar.gz \
      timeDate_3043.102.tar.gz \
      sfsmisc_1.1-4.tar.gz \
      magic_1.5-9.tar.gz \
      lpSolve_5.6.13.1.tar.gz \
      RcppProgress_0.4.1.tar.gz \
      geometry_0.4.1.tar.gz \
      DEoptimR_1.0-8.tar.gz \
      robustbase_0.93-5.tar.gz \
      ddalpha_1.3.9.tar.gz 
  	
  RUN DEBIAN_FRONTEND=noninteractive wget \
      https://archive.linux.duke.edu/cran/src/contrib/gower_0.2.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/RcppRoll_0.3.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/pls_2.7-1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/recipes_0.1.5.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/rsample_0.0.4.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/hunspell_3.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/SnowballC_0.6.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/tokenizers_0.2.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/ISOcodes_2019.04.22.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/stopwords_0.9.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/tidytext_0.2.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/ggridges_0.5.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/bayesplot_1.7.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/matrixStats_0.54.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/checkmate_1.9.3.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/loo_2.1.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/StanHeaders_2.18.1-10.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/inline_0.3.15.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/rstan_2.18.2.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/rstantools_1.5.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/tidypredict_0.3.0.tar.gz 
  	
  
  RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
      gower_0.2.1.tar.gz \
      RcppRoll_0.3.0.tar.gz \
      pls_2.7-1.tar.gz \
      recipes_0.1.5.tar.gz \
      rsample_0.0.4.tar.gz \
      hunspell_3.0.tar.gz \
      SnowballC_0.6.0.tar.gz \
      tokenizers_0.2.1.tar.gz \
      ISOcodes_2019.04.22.tar.gz \
      stopwords_0.9.0.tar.gz \
      tidytext_0.2.1.tar.gz \
      tidypredict_0.3.0.tar.gz \
      ggridges_0.5.1.tar.gz \
      bayesplot_1.7.0.tar.gz \
      matrixStats_0.54.0.tar.gz \
      checkmate_1.9.3.tar.gz \
      loo_2.1.0.tar.gz \
      StanHeaders_2.18.1-10.tar.gz \
      inline_0.3.15.tar.gz \
      rstan_2.18.2.tar.gz \
      rstantools_1.5.1.tar.gz 
  	
  	
  RUN rm \
      gower_0.2.1.tar.gz \
      RcppRoll_0.3.0.tar.gz \
      pls_2.7-1.tar.gz \
      recipes_0.1.5.tar.gz \
      rsample_0.0.4.tar.gz \
      hunspell_3.0.tar.gz \
      SnowballC_0.6.0.tar.gz \
      tokenizers_0.2.1.tar.gz \
      ISOcodes_2019.04.22.tar.gz \
      stopwords_0.9.0.tar.gz \
      tidytext_0.2.1.tar.gz \
      ggridges_0.5.1.tar.gz \
      bayesplot_1.7.0.tar.gz \
      matrixStats_0.54.0.tar.gz \
      checkmate_1.9.3.tar.gz \
      loo_2.1.0.tar.gz \
      StanHeaders_2.18.1-10.tar.gz \
      inline_0.3.15.tar.gz \
      rstan_2.18.2.tar.gz \
      rstantools_1.5.1.tar.gz \
      tidypredict_0.3.0.tar.gz 
  
  
  RUN DEBIAN_FRONTEND=noninteractive wget \
      https://archive.linux.duke.edu/cran/src/contrib/pROC_1.15.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/gtools_3.8.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/gdata_2.18.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/gplots_3.0.1.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/MLmetrics_1.1.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/yardstick_0.0.3.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/xgboost_0.82.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/ModelMetrics_1.2.2.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/caret_6.0-84.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/e1071_1.7-2.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/dotCall64_1.0-0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/spam_2.2-2.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/fields_9.8-3.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/ROCR_1.0-7.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/reticulate_1.12.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/tfruns_1.4.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/tensorflow_1.13.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/zeallot_0.1.0.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/keras_2.2.4.1.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/coda_0.19-2.tar.gz \
      https://archive.linux.duke.edu/cran/src/contrib/greta_0.3.0.tar.gz 
  
  RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
      pROC_1.15.0.tar.gz \
      gtools_3.8.1.tar.gz \
      gdata_2.18.0.tar.gz \
      gplots_3.0.1.1.tar.gz \
      ROCR_1.0-7.tar.gz \
      MLmetrics_1.1.1.tar.gz \
      yardstick_0.0.3.tar.gz \
      xgboost_0.82.1.tar.gz \
      ModelMetrics_1.2.2.tar.gz \
      caret_6.0-84.tar.gz \
      e1071_1.7-2.tar.gz \
      dotCall64_1.0-0.tar.gz \
      spam_2.2-2.tar.gz \
      fields_9.8-3.tar.gz \
      reticulate_1.12.tar.gz \
      tfruns_1.4.tar.gz \
      tensorflow_1.13.1.tar.gz \
      zeallot_0.1.0.tar.gz \
      keras_2.2.4.1.tar.gz \
      coda_0.19-2.tar.gz \
      greta_0.3.0.tar.gz 
  
  RUN rm \
      pROC_1.15.0.tar.gz \
      gtools_3.8.1.tar.gz \
      gdata_2.18.0.tar.gz \
      gplots_3.0.1.1.tar.gz \
      MLmetrics_1.1.1.tar.gz \
      yardstick_0.0.3.tar.gz \
      xgboost_0.82.1.tar.gz \
      ModelMetrics_1.2.2.tar.gz \
      caret_6.0-84.tar.gz \
      e1071_1.7-2.tar.gz \
      dotCall64_1.0-0.tar.gz \
      spam_2.2-2.tar.gz \
      fields_9.8-3.tar.gz \
      ROCR_1.0-7.tar.gz \
      reticulate_1.12.tar.gz \
      tfruns_1.4.tar.gz \
      tensorflow_1.13.1.tar.gz \
      zeallot_0.1.0.tar.gz \
      keras_2.2.4.1.tar.gz \
      coda_0.19-2.tar.gz \
      greta_0.3.0.tar.gz 
  
  
  RUN R CMD BATCH /r-studio/install-2018-packages-1.R
  
negative.code: RUN R CMD BATCH /r-studio/install-Shiny.R
  RUN rm /install-Shiny.Rout
  
  RUN DEBIAN_FRONTEND=noninteractive R --vanilla --quiet -e 'install.packages( c("SparseM", "MatrixModels", "quantreg", "sp", "maptools", "haven", "ellipsis", "forcats", "readxl", "zip", "openxlsx", "rio", "abind", "carData", "car", "mosaicData", "latticeExtra", "gridExtra", "ggdendro", "mnormt", "psych", "generics", "broom", "reshape", "progress", "GGally", "ggstance", "ggformula", "mosaicCore", "ggrepel", "base64enc", "crosstalk", "htmlwidgets", "png", "raster", "viridis", "leaflet", "mosaic"), repos="http://cran.us.r-project.org",quiet=TRUE)'
  
  # Cliburn Chan requested these:
  RUN  DEBIAN_FRONTEND=noninteractive R --vanilla --quiet -e 'install.packages( c("maps", "zoo", "gcookbook", "corrplot", "grepel", "base64enc", "crosstalk", "htmlwidgets", "png", "raster", "viridis", "leaflet", "mosaic"), repos="http://cran.us.r-project.org",quiet=TRUE)'
     
  
  # install rmarkdown
  