-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathR-setup.R
30 lines (22 loc) · 1.25 KB
/
R-setup.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## Step 1: Install Software ----
# Install R locally at version 3.4 https://cran.ma.imperial.ac.uk/
# Install Rstudio Desktop https://www.rstudio.com/products/rstudio/download/#download
# Install pandoc https://pandoc.org/installing.html
## Step 2: Extract Bioconductor packages ----
# Extract bioconductor_packages.zip to ~/Downloads
## Step 3: Open this script in Rstudio and run it ----
required_packages <- c("readr", "here", "glue", "dplyr", "tidyr", "stringr", "ggplot2",
"broom", "forcats", "testthat")
new_packages <- required_packages[!(required_packages %in% installed.packages()[,"Package"])]
if(length(new_packages)) install.packages(new_packages)
bioconductor_packages <- c("Biostrings")
new_bioconducor <- bioconductor_packages[!(bioconductor_packages %in% installed.packages()[,"Package"])]
# if not proxy issues just install biostrings as normal from bioconductor
if(length(new_packages)){
install.packages("~/Downloads/01_BiocGenerics_0.24.0.tar.gz")
install.packages("~/Downloads/02_S4Vectors_0.16.0.tar.gz")
install.packages("~/Downloads/03_IRanges_2.12.0.tar.gz")
install.packages("~/Downloads/04_XVector_0.18.0.tar.gz")
install.packages("~/Downloads/05_Biostrings_2.46.0.tar.gz")
}
# Touch wood that should be it!