This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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')) |
NewerOlder