LoadPackages.R 5.79 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="https://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
6
}
7
# Limited shiny 1.3.2
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
8
if(!require(shiny)){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
9
  install.packages("shiny",  repos="https://cran.univ-paris1.fr/")
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
10
}
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
11

svolant's avatar
svolant committed
12
if(!require(rjson)){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
13
  install.packages('rjson',  repos="https://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
14
}
15

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

if(!require(GUniFrac)){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
21
  install.packages('GUniFrac',  repos="https://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
22
23
24
}

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

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

if (!require(vegan)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
34
  install.packages('vegan',  repos="https://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
35
36
37
}

if (!require(dendextend)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
38
  install.packages('dendextend',  repos="https://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
39
40
41
}

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

45
46
47
48
49
# if (!require(BiocInstaller)){
#   source("https://bioconductor.org/biocLite.R")
#   biocLite("BiocInstaller")
#   library(BiocInstaller)
# }
svolant's avatar
svolant committed
50

Amine  GHOZLANE's avatar
Amine GHOZLANE committed
51
52
53
if(!require(BiocManager)){
  install.packages("BiocManager")
}
54
55
56
57
58
59
60
if (!require(genefilter)) {
  BiocManager::install("genefilter", ask=FALSE)
}

if(!require("SummarizedExperiment")){
  BiocManager::install("SummarizedExperiment", ask=FALSE)
}
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
61

svolant's avatar
svolant committed
62
if (!require(googleVis)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
63
  install.packages('googleVis',  repos="https://cran.univ-paris1.fr/")
64
  #suppressPackageStartupMessages(library(googleVis))
svolant's avatar
svolant committed
65
66
67
}

if (!require(shinyjs)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
68
  install.packages('shinyjs',  repos="https://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
69
70
71
}

if (!require(DT)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
72
  install.packages('DT',  repos="https://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
73
74
75
}

if (!require(RColorBrewer)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
76
  install.packages('RColorBrewer',  repos="https://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
77
78
79
}

if (!require(gplots)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
80
  install.packages('gplots',  repos="https://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
81
82
83
}

if (!require(ade4)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
84
  install.packages('ade4',  repos="https://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
85
86
87
}

if (!require(scales)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
88
  install.packages('scales',  repos="https://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
89
}
svolant's avatar
svolant committed
90
91

if (!require(phytools)) {
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
92
  install.packages('phytools',  repos="https://cran.univ-paris1.fr/")
svolant's avatar
svolant committed
93
94
}

95
if(!require(philentropy)){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
96
  install.packages("philentropy",  repos="https://cran.univ-paris1.fr/")
97
}
svolant's avatar
svolant committed
98

99
if (!require("shinyWidgets")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
100
101
  install.packages("shinyWidgets")
  #devtools::install_github("aghozlane/shinyWidgets")
102
103
104
}

if (!require("sendmailR")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
105
  install.packages("sendmailR",  repos="https://cran.univ-paris1.fr/")
106
107
108
}

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

library(tools)

if (!require("flexdashboard")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
115
  install.packages("flexdashboard",  repos="https://cran.univ-paris1.fr/")
116
117
118
}

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


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

if (!require("jsonlite")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
128
  install.packages("jsonlite",  repos="https://cran.univ-paris1.fr/")
129
130
131
}

if (!require("shinyFiles")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
132
  install.packages("shinyFiles",  repos="https://cran.univ-paris1.fr/")
133
134
}

Amine  GHOZLANE's avatar
Amine GHOZLANE committed
135
if (!require("htmltools")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
136
  install.packages("htmltools",  repos="https://cran.univ-paris1.fr/")
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
137
138
}

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

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

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

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

155
if(!require("ggrepel")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
156
  install.packages("ggrepel",  repos="https://cran.univ-paris1.fr/")
157
158
159
}

if(!require("igraph")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
160
  install.packages("igraph",  repos="https://cran.univ-paris1.fr/")
161
162
163
}

if(!require("visNetwork")){
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
164
  install.packages("visNetwork",  repos="https://cran.univ-paris1.fr/")
165
166
}

Amine  GHOZLANE's avatar
Amine GHOZLANE committed
167
if (!require("shinytoastr")){
168
  install.packages("shinytoastr",  repos="https://cran.univ-paris1.fr/")
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
169
170
171
172
173
174
175
}

if (!require("scatterD3")) {
  #devtools::install_github('aghozlane/scatterD3')
  install.packages("scatterD3", repos="https://cran.univ-paris1.fr/")
}

176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
if (!require(devtools)) {
  install.packages('devtools',  repos="https://cran.univ-paris1.fr/")
}

if(!require("shinydashboardshaman")){
  devtools::install_github('aghozlane/shinydashboardshaman')
}

if (!require("d3heatmap")) {
  #devtools::install_github('aghozlane/d3heatmap')
  devtools::install_github("rstudio/d3heatmap")
}

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

Amine  GHOZLANE's avatar
Amine GHOZLANE committed
193
194
if (!require("rNVD3shaman")) {
  devtools::install_github('aghozlane/rNVD3shaman')
195
196
}

Amine  GHOZLANE's avatar
Amine GHOZLANE committed
197
198
if (!require("DESeq2shaman")) {
  devtools::install_github("aghozlane/DESeq2shaman")
199
200
201
202
203
204
}

if(!require("PhyloTreeMetaR")){
  devtools::install_github("pierreLec/PhyloTreeMetaR")
}

Amine  GHOZLANE's avatar
Amine GHOZLANE committed
205
206
if(!require("treeWeightD3")){
  devtools::install_github('pierreLec/treeWeightD3')
207
208
209
210
}

if(!require("d3vennR")){
  devtools::install_github("timelyportfolio/d3vennR")
211
212
213
214
215
216
217
218
219
220
221
}

libshaman=c("shiny", "rjson", "ape", "GUniFrac", "psych", "ggplot2", "vegan", "dendextend", 
            "circlize", "genefilter", "SummarizedExperiment", "shinyjs", "DT", "RColorBrewer", 
            "gplots", "ade4", "scales", "phytools", "philentropy", "shinyWidgets", "sendmailR", 
            "shinyBS", "tools", "flexdashboard", "backports", "readr", "jsonlite", "shinyFiles", 
            "htmltools", "rAmCharts", "colourpicker", "data.table", "UpSetR", "ggrepel", "igraph", 
            "visNetwork", "shinytoastr", "scatterD3", "devtools", "shinydashboardshaman", "d3heatmap", 
            "biomformatshaman", "rNVD3shaman", "DESeq2shaman", "PhyloTreeMetaR", "treeWeightD3", "d3vennR",
            "googleVis")
lapply(libshaman, require, character.only = TRUE)