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

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

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

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

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

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

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

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

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

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


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

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

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

svolant's avatar
svolant committed
85
if (!require(scatterD3)) {
86
  devtools::install_github('aghozlane/scatterD3')
svolant's avatar
svolant committed
87
88
89
90
  library(scatterD3)
}

if (!require(rNVD3)) {
91
  devtools::install_github('aghozlane/rNVD3')
svolant's avatar
svolant committed
92
93
94
95
96
97
98
99
100
101
  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
102
  install.packages('googleVis',  repos="http://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
103
104
105
106
  suppressPackageStartupMessages(library(googleVis))
}

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

if(!require(d3vennR)){
  install_github("timelyportfolio/d3vennR")
  library(d3vennR)
}

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

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

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

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

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

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

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

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

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

162
163
164
165
166
167
168
169
170
171
172
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
173
  install.packages("sendmailR",  repos="http://cran.univ-paris1.fr/")
174
175
176
177
  library(sendmailR)
}

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

library(tools)

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

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


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

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


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

Amine  GHOZLANE's avatar
Amine GHOZLANE committed
211
212
213
214
215
216
217
218
219
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
220

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

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

if(!require("colourpicker")){
  install.packages("colourpicker")
Amine Ghozlane's avatar
Amine Ghozlane committed
233
  library(colourpicker)
234
235
236
237
238
239
240
241
242
243
244
}  

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

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

246
247
248
if(!require("ggrepel")){
  install.packages("ggrepel")
  library(ggrepel)
Amine Ghozlane's avatar
Amine Ghozlane committed
249
}