anchor.diff:  RUN sed -i -e '/^R_LIBS_USER=/s/^/#/' /etc/R/Renviron && \
       echo "R_LIBS_USER=${R_LIBS_USER}" >> /etc/R/Renviron
   
  -COPY  class-libs.R /tmp/class-libs.R
  +# Install R libraries as our user
  +USER ${NB_USER}
  +
  +COPY class-libs.R /tmp/class-libs.R
   # Install all our base R packages
   COPY install.R  /tmp/install.R
   RUN /tmp/install.R && \
       rm -rf /tmp/downloaded_packages
   
  -
   RUN mkdir -p /tmp/r-packages
   
   # pdftools
  
positive.code: 
  WORKDIR /home/${NB_USER}
  
  COPY install-miniforge.bash /tmp/install-miniforge.bash
  RUN /tmp/install-miniforge.bash
  
  USER ${NB_USER}
  
  COPY environment.yml /tmp/environment.yml
  
negative.code: # Create user owned R libs dir
  # This lets users temporarily install packages
  ENV R_LIBS_USER /opt/r
  RUN install -d -o ${NB_USER} -g ${NB_USER} ${R_LIBS_USER}
  
  RUN apt-get -qq update --yes && \
      apt-get -qq install --yes \
  