Skip to content

Instantly share code, notes, and snippets.

View lgaborini's full-sized avatar

Lorenzo Gaborini lgaborini

View GitHub Profile
@lgaborini
lgaborini / Dockerfile
Created September 8, 2022 13:43
remotes-repos-reprex
FROM rocker/verse:4.2.0
RUN R -q -e 'install.packages("remotes")'
# add a new file-based remote to options()$repos
COPY setup_repos.R setup_repos.R
# add it on startup
RUN mkdir -p /usr/local/lib/R/etc/ /usr/lib/R/etc/
RUN cat setup_repos.R | tee /usr/local/lib/R/etc/Rprofile.site | tee /usr/lib/R/etc/Rprofile.site
@lgaborini
lgaborini / plot_examples.R
Last active September 1, 2017 15:58
The very basics on R ggplot2 plots
# Make some sample R plots
#
#############################################
# Delete all variables
rm(list = ls())
set.seed(123)
# dplyr: an awesome package to manipulate data easily