Skip to content

Instantly share code, notes, and snippets.

View marcelotournier's full-sized avatar
🎨

Marcelo Tournier marcelotournier

🎨
View GitHub Profile
# Save your R package list:
packages <- levels(as.data.frame(installed.packages()[,1])[,1])
write.csv(packages, "requirements.txt", row.names = FALSE, quote = FALSE)
# Load your R package list:
backup <- levels(read.csv("requirements.txt")[,1])
# Install your package list on a new machine:
install.packages(backup)
@marcelotournier
marcelotournier / jupyte.R
Created January 31, 2020 03:36
R script to install the R jupyter notebook kernel
# R script to install the R jupyter notebook kernel
# Instructions:
# 1. Install Anaconda 3
# 2. Install the R Binaries from CRAN. No need for RStudio to run Jupyter notebooks.
# 3. If you are on a Mac, install XQUARTZ from https://www.xquartz.org/
# 4. In terminal, go to this script directory, and open R there (R, not RStudio)
# run in the R REPL Shell:
"source("jupyte.R")"
install.packages(c('devtools','repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))