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
#!/bin/bash | |
# This script contains commands to install RStudio & Jupyter in ubuntu 18 | |
# Add keys and CRAN repo for ubuntu 18 | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 | |
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/' | |
sudo apt update | |
# Install R + system dependencies for tidyverse |
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