-
Notifications
You must be signed in to change notification settings - Fork 0
/
packages.R
28 lines (26 loc) · 1.28 KB
/
packages.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
# Install packages
if (!"forcats" %in% installed.packages()) install.packages("forcats", dependencies = T)
if (!"ggplot2" %in% installed.packages()) install.packages("ggplot2", dependencies = T)
if (!"knitr" %in% installed.packages()) install.packages("knitr", dependencies = T)
if (!"lme4" %in% installed.packages()) install.packages("lme4", dependencies = T)
if (!"lmerTest" %in% installed.packages()) install.packages("lmerTest", dependencies = T)
if (!"lsmeans" %in% installed.packages()) install.packages("lsmeans", dependencies = T)
if (!"multcomp" %in% installed.packages()) install.packages("multcomp", dependencies = T)
if (!"multcompView" %in% installed.packages()) install.packages("multcompView", dependencies = T)
if (!"pastecs" %in% installed.packages()) install.packages("pastecs", dependencies = T)
if (!"readxl" %in% installed.packages()) install.packages("readxl", dependencies = T)
if (!"svglite" %in% installed.packages()) install.packages("svglite", dependencies = T)
if (!"tidyverse" %in% installed.packages()) install.packages("tidyverse", dependencies = T)
# Load packages
library(forcats)
library(ggplot2)
library(knitr)
library(lme4)
library(lmerTest)
library(lsmeans)
library(multcomp)
library(multcompView)
library(pastecs)
library(readxl)
library(svglite)
library(tidyverse)