

Sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release # Install a bunch of Ubuntu dependencies.Begin by adding dependencies needed by the installation process: sudo apt-get update # Running it in daemon mode is required because a Dockerfile must be setup non-interactively # Install spacemacs by cloning its repository # Install `git`, `wget` and the latest `Emacs` # add the ppa which includes the latest version of Emacs & apt-get install -y -no-install-recommends \ # install `gpg-agent` and `software-properties-common` which are needed to add an Ubuntu ppa to install Emacs So, here’s the Dockerfile: # This builds upon the Rocker project's versioned image for R version 4.3 So if I want to see plots for example, I need to use the, using Docker might be the simplest way to get it to work. The Docker container defined by this image, I will be using Emacs inside a Rprofile? Well, don’t forget that when I will be running Know which version of R and packages I get. There are several decisions that I took that I needĮxplain: first, why use a versioned image, and why use the PPPM at a specificĭate? I did this so that it doesn’t matter when I build the image, I always Physical book instead, you’ll need to wait some more, I still need to get theįormatting right before making it available through Amazon self-publishing Pipelines with R (that you can also read for freeĪnd PDF version of the book for 14.99 instead of 19.99! If you want a good old If you have read until here dear reader, let me express my gratitude by offeringĪ DRM-free Epub and PDF version of my book, Building reproducible analytical Post’s sponsor: me, I’m this post’s sponsor. But before explaining it in more detail, here’s a word from this blog I’ve explained each line of the Dockerfile using comments in the Dockerfile (and here’s the repository where you can find it). RUN R -e "remotes::install_github('devOpifex/g2r')" # Install the g2r package (not yet available on CRAN) RUN R -e "install.packages(c('quarto', 'remotes', 'tinytex', 'tidyverse', 'arrow', 'chronicler', 'janitor', 'targets', 'tarchetypes', 'openxlsx', 'shiny', 'flexdashboard', 'data.table', 'httpgd', 'blogdown', 'bookdown'))"

RUN echo 'options(repos = c(REPO_NAME = ""))' > /root/.Rprofile # Set the CRAN package repositories to the PPPM at the 28th of April # Serve shiny apps through localhost and port 8888 RUN echo 'options( = FALSE)' > /root/.Rprofile # sure that they stay persistent across reboots. # This option clones renv cache folders inside the root folder of the projects. Why you should consider working on a dockerized development environment | R-bloggers > /root/.Rprofile
