-
Notifications
You must be signed in to change notification settings - Fork 0
/
patty's_package_environment.R
114 lines (108 loc) · 2.74 KB
/
patty's_package_environment.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Function to check and install packages
install_if_missing <- function(package) {
if (!require(package, character.only = TRUE)) {
install.packages(package, dependencies = TRUE)
library(package, character.only = TRUE)
}
}
# List of packages to use
packages <- c(
"tidyverse", "lme4", "lmerTest", "cowplot", "plyr", "dplyr", "readr", "tidyr",
"purrr", "effectsize", "DataExplorer", "GGally", "ggfortify", "ghibli", "shiny",
"ggpubr", "rstatix", "plotly", "umap", "tsne", "viridis", "RColorBrewer",
"see", "performance", "patchwork", "outliers", "readxl", "tibble", "flextable",
"kableExtra", "gt", "gtsummary", "lsr", "apaTables", "knitr", "forcats",
"hrbrthemes", "vegan", "iml", "tidyposterior", "skimr", "tidymodels",
"nnet", "kknn", "sjPlot", "sjmisc", "effects", "sjstats", "webshot", "Hmisc", "conflicted",
"rempsyc", "glmmTMB", "caret", "psych", "gridExtra", "ggfortify", "scatterplot3d",
"rgl", "plot3D", "webshot2", "emmeans", "pheatmap", "MASS", "mvtnorm",
"fitdistrplus", "GLMMadaptive", "DHARMa"
)
# Install and load packages
lapply(packages, install_if_missing)
# Packages that need to be loaded
library(tidyverse)
library(lme4)
library(lmerTest)
library(cowplot)
library(plyr)
library(dplyr)
library(readr)
library(tidyr)
library(purrr)
library(effectsize)
library(DataExplorer)
library(GGally)
library(ggfortify)
library(ghibli)
library(shiny)
library(ggpubr)
library(rstatix)
library(plotly)
library(umap)
library(tsne)
library(viridis)
# Extras:
library(RColorBrewer)
library(see)
library(performance)
library(patchwork)
library(outliers)
library(readxl)
library(tibble)
library(flextable)
library(kableExtra)
library(gt)
library(gtsummary)
library(lsr)
library(apaTables)
library(knitr)
library(viridis)
library(forcats)
library(hrbrthemes)
library(vegan)
#library(ggvegan) #depreciated
library(iml)
library(tidyposterior)
library(skimr)
library(tidyverse)
library(tidymodels)
library(nnet)
library(kknn)
library(sjPlot)
library(sjmisc)
library(effects)
library(sjstats)
library(webshot)
library(Hmisc)
library(conflicted)
library(rempsyc)
library(glmmTMB)
library(caret)
library(psych)
library(gridExtra)
library(ggfortify)
library(scatterplot3d)
library(rgl)
library(plot3D)
library(webshot2)
library(emmeans)
library(pheatmap)
library(MASS)
library(mvtnorm)
library(fitdistrplus)
library(GLMMadaptive)
library(DHARMa)
tidymodels_prefer()
conflicts_prefer(dplyr::mutate)
conflicts_prefer(dplyr::arrange)
conflicts_prefer(dplyr::summarize)
conflicts_prefer(yardstick::accuracy)
conflicts_prefer(rstanarm::logit)
conflicts_prefer(readr::cols)
conflicts_prefer(base::`:`)
conflicts_prefer(broom::bootstrap)
conflicts_prefer(svglite::font_face)
conflicts_prefer(lmerTest::lmer)
conflicts_prefer(dplyr::recode)
conflicts_prefer(dplyr::summarise)