LoadPackages.R 5.68 KB
Newer Older
1
2
#options(download.file.method = 'wget', bitmapType='cairo')
options(bitmapType='cairo')
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
3

svolant's avatar
svolant committed
4
if (!require("Rcpp")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
5
  install.packages("Rcpp",  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
6
}
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
7
if(!require(shiny)){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
8
  install.packages("shiny",  repos="http://cran.univ-paris1.fr/")
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
9
10
  library(shiny)
}
svolant's avatar
svolant committed
11
if(!require(shinydashboard)){
svolant's avatar
svolant committed
12
  devtools::install_github('aghozlane/shinydashboard')
svolant's avatar
svolant committed
13
14
15
16
  library(shinydashboard)
}

if(!require(rjson)){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
17
  install.packages('rjson',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
18
19
20
  library(rjson)
}
if(!require(ape)){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
21
  install.packages('ape',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
22
23
24
25
  library(ape)
}

if(!require(GUniFrac)){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
26
  install.packages('GUniFrac',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
27
  library(GUniFrac)
svolant's avatar
svolant committed
28
29
30
}

if(!require(devtools)){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
31
  install.packages('devtools',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
32
  library(devtools)
svolant's avatar
svolant committed
33
34
35
}

if (!require(psych)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
36
  install.packages('psych',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
37
38
39
40
  library(psych)
}

if (!require(ggplot2)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
41
  install.packages('ggplot2',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
42
43
44
45
  library(ggplot2)
}

if (!require(vegan)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
46
  install.packages('vegan',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
47
48
49
50
  library(vegan)
}

if (!require(dendextend)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
51
  install.packages('dendextend',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
52
53
54
55
  library(dendextend)
}

if (!require(circlize)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
56
  install.packages('circlize',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
57
58
59
60
61
  library(circlize)
}


if (!require(devtools)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
62
  install.packages('devtools',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
63
64
  library(devtools)
}
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
65
66
67
68
if(!require(treeWeightD3)){
   devtools::install_github('pierreLec/treeWeightD3')
   library(treeWeightD3)
}
Amine Ghozlane's avatar
Amine Ghozlane committed
69
70
71
72
73
if (!require(BiocInstaller)){
  source("https://bioconductor.org/biocLite.R")
  biocLite("BiocInstaller")
  library(BiocInstaller)
}
svolant's avatar
svolant committed
74

75
76
77
78
79
if (!require(d3heatmap)) {
  devtools::install_github('aghozlane/d3heatmap')
  library(d3heatmap)
}

80
81
# Let us use biomformat instead of biom
if (!require(biomformat)){
82
 devtools::install_github("aghozlane/biomformat")
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
83
library(biomformat)
84
85
}

svolant's avatar
svolant committed
86
if (!require(scatterD3)) {
87
88
  #devtools::install_github('aghozlane/scatterD3')
  install.packages("scatterD3")
svolant's avatar
svolant committed
89
90
91
92
  library(scatterD3)
}

if (!require(rNVD3)) {
93
  devtools::install_github('aghozlane/rNVD3')
svolant's avatar
svolant committed
94
95
96
97
98
99
100
101
102
103
  library(rNVD3)
}

if (!require(genefilter)) {
  source("https://bioconductor.org/biocLite.R")
  biocLite("genefilter")
  library(genefilter)
}

if (!require(googleVis)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
104
  install.packages('googleVis',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
105
106
107
108
  suppressPackageStartupMessages(library(googleVis))
}

if (!require(shinyjs)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
109
  install.packages('shinyjs',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
110
111
112
113
  library(shinyjs)
}

if(!require(d3vennR)){
114
  devtools::install_github("timelyportfolio/d3vennR")
svolant's avatar
svolant committed
115
116
117
118
  library(d3vennR)
}

if (!require(DT)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
119
  install.packages('DT',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
120
121
122
123
  library(DT)
}

if (!require(RColorBrewer)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
124
  install.packages('RColorBrewer',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
125
126
127
128
  library(RColorBrewer)
}

if (!require(gplots)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
129
  install.packages('gplots',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
130
131
132
133
  library(gplots)
}

if (!require(DESeq2)) {
134
  devtools::install_github("aghozlane/DESeq2shaman")
svolant's avatar
svolant committed
135
136
137
138
  library(DESeq2)
}

if (!require(ade4)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
139
  install.packages('ade4',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
140
141
142
143
  library(ade4)
}

if (!require(scales)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
144
  install.packages('scales',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
145
146
  library(scales)
}
svolant's avatar
svolant committed
147
148

if (!require(phytools)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
149
  install.packages('phytools',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
150
151
152
  library(phytools)
}

153
if(!require(philentropy)){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
154
  install.packages("philentropy",  repos="http://cran.univ-paris1.fr/")
155
156
  library(philentropy)
}
svolant's avatar
svolant committed
157

158
if(!require(PhyloTreeMetaR)){
159
  devtools::install_github("pierreLec/PhyloTreeMetaR")
160
161
162
  library(PhyloTreeMetaR)
}

163
164
165
166
167
168
169
170
171
172
173
if (!require("shinytoastr")){
  devtools::install_github("mangothecat/shinytoastr")
  library(shinytoastr)
}

if (!require("shinyWidgets")){
  devtools::install_github("aghozlane/shinyWidgets")
  library(shinyWidgets)
}

if (!require("sendmailR")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
174
  install.packages("sendmailR",  repos="http://cran.univ-paris1.fr/")
175
176
177
178
  library(sendmailR)
}

if (!require("shinyBS")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
179
  install.packages("shinyBS",  repos="http://cran.univ-paris1.fr/")
180
181
182
183
184
185
  library(shinyBS)
}

library(tools)

if (!require("flexdashboard")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
186
  install.packages("flexdashboard",  repos="http://cran.univ-paris1.fr/")
187
188
189
190
  library(flexdashboard)
}

if (!require("backports")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
191
  install.packages("backports",  repos="http://cran.univ-paris1.fr/")
192
193
194
195
196
  library(backports)
}


if (!require("readr")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
197
  install.packages("readr",  repos="http://cran.univ-paris1.fr/")
198
199
200
201
  library(readr)
}

if (!require("jsonlite")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
202
  install.packages("jsonlite",  repos="http://cran.univ-paris1.fr/")
203
204
205
206
207
  library(jsonlite)
}


if (!require("shinyFiles")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
208
  install.packages("shinyFiles",  repos="http://cran.univ-paris1.fr/")
209
210
211
  library(shinyFiles)
}

Amine  GHOZLANE's avatar
Amine GHOZLANE committed
212
213
214
215
216
217
218
219
220
if (!require("htmltools")){
  install.packages("htmltools",  repos="http://cran.univ-paris1.fr/")
  library(htmltools)
}

# if (!require("V8")){
#   install.packages("V8",  repos="http://cran.univ-paris1.fr/")
#   library(htmltools)
# }
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
221

222
223
224
225
# if(!require(plotly)){
#   install.packages("plotly")
#   library(plotly)  
# }
svolant's avatar
svolant committed
226

227
228
229
230
231
232
233
if (!require("rAmCharts")){
  install.packages("rAmCharts")
  library(rAmCharts)
}

if(!require("colourpicker")){
  install.packages("colourpicker")
234
235
  library(colourpicker)
}
236
237
238
239
240
241
242
243
244
245

if(!require("data.table")){
  install.packages("data.table")
  library(data.table)
}

if(!require("UpSetR")){
  install.packages("UpSetR")
  library(UpSetR)
}
svolant's avatar
svolant committed
246

247
248
249
if(!require("ggrepel")){
  install.packages("ggrepel")
  library(ggrepel)
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
}

# if(!require("networkD3")){
#   install.packages("networkD3")
#   library(networkD3)
# }

if(!require("igraph")){
  install.packages("igraph")
  library(igraph)
}

if(!require("visNetwork")){
  install.packages("visNetwork")
  library(visNetwork)
}