-
Notifications
You must be signed in to change notification settings - Fork 2
/
installRPackages.R
88 lines (84 loc) · 3.03 KB
/
installRPackages.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
# Look for, and also install, packages in "~/R/library"
.libPaths( c( "~/R/Library", .libPaths() ) );
source( "http://bioconductor.org/biocLite.R" );
install.packages( pkgs = "binom", dependencies = TRUE, quiet = TRUE );
if( !require( "binom" ) ) {
stop( "Error loading package \"binom\"" );
}
install.packages( pkgs = "xtable", dependencies = TRUE, quiet = TRUE );
if( !require( "xtable" ) ) {
stop( "Error loading package \"xtable\"" );
}
install.packages( pkgs = "coin", dependencies = TRUE, quiet = TRUE );
if( !require( "coin" ) ) {
stop( "Error loading package \"coin\"" );
}
install.packages( pkgs = "ggplot2", dependencies = TRUE, quiet = TRUE );
if( !require( "ggplot2" ) ) {
stop( "Error loading package \"ggplot2\"" );
}
install.packages( pkgs = "tools", dependencies = TRUE, quiet = TRUE );
if( !require( "tools" ) ) {
stop( "Error loading package \"tools\"" );
}
install.packages( pkgs = "ade4", dependencies = TRUE, quiet = TRUE );
if( !require( "ade4" ) ) {
stop( "Error loading package \"ade4\"" );
}
install.packages( pkgs = "ape", dependencies = TRUE, quiet = TRUE );
if( !require( "ape" ) ) {
stop( "Error loading package \"ape\"" );
}
install.packages( pkgs = "dynamicTreeCut", dependencies = TRUE, quiet = TRUE );
if( !require( "dynamicTreeCut" ) ) {
stop( "Error loading package \"dynamicTreeCut\"" );
}
install.packages( pkgs = "entropy", dependencies = TRUE, quiet = TRUE );
if( !require( "entropy" ) ) {
stop( "Error loading package \"entropy\"" );
}
install.packages( pkgs = "ROCR", dependencies = TRUE, quiet = TRUE );
if( !require( "ROCR" ) ) {
stop( "Error loading package \"ROCR\"" );
}
install.packages( pkgs = "dplyr", dependencies = TRUE, quiet = TRUE );
if( !require( "dplyr" ) ) {
stop( "Error loading package \"dplyr\"" );
}
install.packages( pkgs = "glmnet", dependencies = TRUE, quiet = TRUE );
if( !require( "glmnet" ) ) {
stop( "Error loading package \"glmnet\"" );
}
install.packages( pkgs = "glmnetUtils", dependencies = TRUE, quiet = TRUE );
if( !require( "glmnetUtils" ) ) {
stop( "Error loading package \"glmnetUtils\"" );
}
biocLite( pkgs = "seqinr" );
if( !require( package = "seqinr" ) ) {
stop( paste( "Error loading package", "seqinr" ) );
}
biocLite( pkgs = "stringr" );
if( !require( package = "stringr" ) ) {
stop( paste( "Error loading package", "stringr" ) );
}
biocLite( pkgs = "Biostrings" );
if( !require( package = "Biostrings" ) ) {
stop( paste( "Error loading package", "Biostrings" ) );
}
install.packages( pkgs = "optparse", dependencies = TRUE, quiet = TRUE );
if( !require( "optparse" ) ) {
stop( "Error loading package \"optparse\"" );
}
## TO INSTALL hypermuteR on linux:
# (in R:)
library( "devtools" );
install_github( "philliplab/hypermutR" )
## BUT on my mac I had to rebuild it from source:
# (in shell:)
# git clone https://github.com/philliplab/hypermutR.git
# rm hypermutR/src/*.o hypermutR/src/*.so
# sudo R CMD INSTALL hypermutR
# Test it loads (in R:)
if( !require( package = "hypermutR" ) ) {
stop( paste( "Error loading package", "hypermutR" ) );
}