R and RStudio
Section outline
-
Preparation of R for enrichment analysis tool – 03.12.2021
Two options are available to perform the exercises of the enrichment analysis course.
1. Local installation of R and RStudio:
Install R:
Install RStudio (free version is fine)
https://rstudio.com/products/rstudio/download/
Once R and RStudio are installed, open RStudio only (no need to open R, RStudio connects automatically to your installation of R).
Install the necessary packages using the following commands:
install.packages("BiocManager")
BiocManager::install("clusterProfiler")
BiocManager::install("org.Hs.eg.db")
BiocManager::install("pathview")
BiocManager::install("enrichplot")
install.packages("ggplot2")
install.packages("ggrepel")2. Another option is to create an R session on the RStudio cloud:
Create a free account. Then, go to “Workspace” and create a new project by clicking on “New project”. Once the new project has been deployed, install the necessary packages using the following commands:
install.packages("BiocManager")
BiocManager::install("clusterProfiler")
BiocManager::install("org.Hs.eg.db")
BiocManager::install("pathview")
BiocManager::install("enrichplot")
install.packages("ggplot2")
install.packages("ggrepel")