Install R. You’ll need R version 3.5.0 or higher.1 Download and install R for Windows or Mac (download the latest R-3.x.x.pkg file for your appropriate version of Mac OS).
Download and install RStudio Desktop version >= 1.1.463.
R and RStudio are separate downloads and installations. R is the underlying statistical computing environment, but using R alone is no fun. RStudio is a graphical integrated development environment that makes using R much easier. You need R installed before you install RStudio.
Launch RStudio (RStudio, not R itself). Ensure that you have internet access, then copy and paste the following command into the Console panel (usually the lower-left panel, by default) and hit the Enter/Return key.
pkg <- c("BiocManager", "dplyr", "emojifont",
"ggplot2", "ggimage", "ggstance",
"readr", "tibble", "tidytree"))
install.packages(pkg)
A few notes:
Check that you’ve installed everything correctly by closing and reopening RStudio and entering the following commands at the console window:
library(BiocManager)
library(dplyr)
library(ggplot2)
library(readr)
library(tibble)
library(tidytree)
If you get a message that says something like: Error in library(somePackageName) : there is no package called 'somePackageName'
, then the required packages did not install correctly.
The treeio and ggtree packages are released within the Bioconductor project These packages are installed differently than “regular” R packages from CRAN. Copy and paste these lines of code into your R console one at a time.
library(BiocManager)
install("Biostrings")
install("treeio")
install("ggtree")
A few notes:
n
at the prompt at hit enter.n
for no, and hit enter.Check that you’ve installed everything correctly by closing and reopening RStudio and entering the following commands at the console window, one at a time:
library(treeio)
library(ggtree)
If you get a message that says something like: Error in library(somePackageName) : there is no package called 'somePackageName'
, then the required packages did not install correctly.
Click the Data link on the navbar at the top. You can download all the data needed by downloading this zip file or by downloading individual data sets as needed at the Data page.
R version 3.5.0 was released April 2018. If you have not updated your R installation since then, you need to upgrade to a more recent version, since several of the required packages depend on a version at least this recent. You can check your R version with the sessionInfo()
command.↩