-
Notifications
You must be signed in to change notification settings - Fork 11
/
switch_cytotool_version.R
73 lines (55 loc) · 3.32 KB
/
switch_cytotool_version.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
switch_cytotool_version <- function(cytoset = TRUE) {
if(cytoset)
{
pkg <- "flowWorkspaceData"
if(require(pkg, quietly = T, warn.conflicts = F, character.only = T)&&packageVersion(pkg) < "3.17.1")
devtools::install_github(file.path("RGLab", pkg), ref = "cytoset")
pkg <- "RProtoBufLib"
if(require(pkg, quietly = T, warn.conflicts = F, character.only = T)&&packageVersion(pkg) < "2.1.7")
devtools::install_github(file.path("RGLab", pkg), ref = "cytoset")
pkg <- "cytolib"
if(require(pkg, quietly = T, warn.conflicts = F, character.only = T)&&packageVersion(pkg) < "2.1.12")
devtools::install_github(file.path("RGLab", pkg), ref = "cytoset")
pkg <- "flowWorkspace"
if(require(pkg, quietly = T, warn.conflicts = F, character.only = T)&&packageVersion(pkg) < "4.0.3")
devtools::install_github(file.path("RGLab", pkg), ref = "cytoset")
pkg <- "openCyto"
if(require(pkg, quietly = T, warn.conflicts = F, character.only = T)&&packageVersion(pkg) < "2.21.3")
devtools::install_github(file.path("RGLab", pkg), ref = "cytoset")
pkg <- "ggcyto"
if(require(pkg, quietly = T, warn.conflicts = F, character.only = T)&&packageVersion(pkg) < "1.11.4")
devtools::install_github(file.path("RGLab", pkg), ref = "trunk")
pkg <- "COMPASS"
if(require(pkg, quietly = T, warn.conflicts = F, character.only = T)&&packageVersion(pkg) < "1.21.1")
devtools::install_github(file.path("RGLab", pkg), ref = "trunk")
pkg <- "CytoML"
if(require(pkg, quietly = T, warn.conflicts = F, character.only = T)&&packageVersion(pkg) < "2.9.3")
devtools::install_github(file.path("RGLab", pkg), ref = "cytoset")
}else
{
pkg <- "flowWorkspaceData"
if(require(pkg, quietly = T, warn.conflicts = F, character.only = T)&&packageVersion(pkg) >= "3.17.1")
devtools::install_github(file.path("RGLab", pkg), ref = "trunk")
pkg <- "RProtoBufLib"
if(require(pkg, quietly = T, warn.conflicts = F, character.only = T)&&packageVersion(pkg) >= "2.1.7")
devtools::install_github(file.path("RGLab", pkg), ref = "trunk")
pkg <- "cytolib"
if(require(pkg, quietly = T, warn.conflicts = F, character.only = T)&&packageVersion(pkg) >= "2.1.12")
devtools::install_github(file.path("RGLab", pkg), ref = "trunk")
pkg <- "flowWorkspace"
if(require(pkg, quietly = T, warn.conflicts = F, character.only = T)&&packageVersion(pkg) >= "4.0.3")
devtools::install_github(file.path("RGLab", pkg), ref = "trunk")
pkg <- "openCyto"
if(require(pkg, quietly = T, warn.conflicts = F, character.only = T)&&packageVersion(pkg) >= "2.21.3")
devtools::install_github(file.path("RGLab", pkg), ref = "trunk")
pkg <- "ggcyto"
if(require(pkg, quietly = T, warn.conflicts = F, character.only = T)&&packageVersion(pkg) < "1.11.4")
devtools::install_github(file.path("RGLab", pkg), ref = "trunk")
pkg <- "COMPASS"
if(require(pkg, quietly = T, warn.conflicts = F, character.only = T)&&packageVersion(pkg) < "1.21.1")
devtools::install_github(file.path("RGLab", pkg), ref = "trunk")
pkg <- "CytoML"
if(require(pkg, quietly = T, warn.conflicts = F, character.only = T)&&packageVersion(pkg) >= "2.9.3")
devtools::install_github(file.path("RGLab", pkg), ref = "trunk")
}
}