-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path00_Installation.Rmd
37 lines (27 loc) · 1.11 KB
/
00_Installation.Rmd
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
31
32
33
34
35
36
37
---
title: "Installation"
output: html_document
---
Before you run the tutorial, you will need to install the following packages. I have written a few helper functions that will facilitate the installation process:
```{r}
# Install CRAN packages
check.packages <- function(pkg){
new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])]
if (length(new.pkg))
install.packages(new.pkg, dependencies = TRUE)
sapply(pkg, require, character.only = TRUE)
}
packages<-c("yaml", "tidyverse", "BiocManager", "umap", "ggplot2",
"R.utils", "devtools", "")
check.packages(packages)
# Install bioconductor packages
check_biocmanager <- function(pkg){
if (!requireNamespace(pkg, quietly = TRUE))
install.packages(pkg)
sapply(pkg, require, character.only = TRUE)}
packages<-c("CATALYST", "SingleCellExperiment", "flowCore", "scater", "diffcyt", "BiocParallel")
check_biocmanager(packages)
# these packages are not currently on any package manager so you will need to
# install these individually from github using devtools (installed above).
#devtools::install_github("Acribbs/siteymlgen")
```