| 22 | * 安裝 JDK |
| 23 | {{{ |
| 24 | ~$ sudo apt-get install sun-java6-jdk |
| 25 | }}} |
| 26 | * 安裝 R 及 Bioconductor |
| 27 | {{{ |
| 28 | ~$ sudo apt-get install r-base |
| 29 | ~$ sudo R |
| 30 | > source("http://www.bioconductor.org/biocLite.R") |
| 31 | > biocLite() |
| 32 | Warning messages: |
| 33 | 1: In install.packages(pkgs = pkgs, repos = repos, dependencies = dependencies, : |
| 34 | dependency ‘Matrix’ is not available |
| 35 | 2: In install.packages(pkgs = pkgs, repos = repos, dependencies = dependencies, : |
| 36 | installation of package 'IRanges' had non-zero exit status |
| 37 | 3: In install.packages(pkgs = pkgs, repos = repos, dependencies = dependencies, : |
| 38 | installation of package 'Biostrings' had non-zero exit status |
| 39 | }}} |
| 40 | * 第一個錯誤是找不到 r-cran-matrix 套件,這裡用暴力法安裝所有在 apt 套件庫裡的 R 相關套件(除了 rjava 外) |
| 41 | {{{ |
| 42 | ~$ sudo apt-get install `apt-cache search --names-only "^r-cran" | awk '{ print $1 }' | grep -v "r-cran-rjava" ` |
| 43 | }}} |
| 44 | * 裝好之後,重裝一次 Bioconductor 就沒有錯誤了。 |
| 45 | {{{ |
| 46 | ~$ sudo apt-get install r-base |
| 47 | ~$ sudo R |
| 48 | > source("http://www.bioconductor.org/biocLite.R") |
| 49 | > biocLite() |
| 50 | > library() |
| 51 | Packages in library '/usr/local/lib/R/site-library': |
| 52 | |
| 53 | affy Methods for Affymetrix Oligonucleotide Arrays |
| 54 | affydata Affymetrix Data for Demonstration Purpose |
| 55 | affyio Tools for parsing Affymetrix data files |
| 56 | affyPLM Methods for fitting probe-level models |
| 57 | affyQCReport QC Report Generation for affyBatch objects |
| 58 | annaffy Annotation tools for Affymetrix biological |
| 59 | metadata |
| 60 | annotate Annotation for microarrays |
| 61 | AnnotationDbi Annotation Database Interface |
| 62 | Biobase Biobase: Base functions for Bioconductor |
| 63 | Biostrings String objects representing biological |
| 64 | sequences, and matching algorithms |
| 65 | DynDoc Dynamic document tools |
| 66 | gcrma Background Adjustment Using Sequence |
| 67 | Information |
| 68 | genefilter genefilter: methods for filtering genes from |
| 69 | microarray experiments |
| 70 | geneplotter Grapics related functions for Bioconductor |
| 71 | GO.db A set of annotation maps describing the entire |
| 72 | Gene Ontology |
| 73 | hgu95av2.db Affymetrix Human Genome U95 Set annotation data |
| 74 | (chip hgu95av2) |
| 75 | IRanges Low-level containers for storing sets of |
| 76 | integer ranges |
| 77 | KEGG.db A set of annotation maps for KEGG |
| 78 | limma Linear Models for Microarray Data |
| 79 | marray Exploratory analysis for two-color spotted |
| 80 | microarray data |
| 81 | matchprobes Basic infrastructure for using oligonucleotide |
| 82 | microarray reporter sequence information for |
| 83 | preprocessing and quality assessment |
| 84 | multtest Resampling-based multiple hypothesis testing |
| 85 | preprocessCore A collection of pre-processing functions |
| 86 | ROC utilities for ROC, with uarray focus |
| 87 | RSQLite SQLite interface for R |
| 88 | simpleaffy Very simple high level analysis of Affymetrix |
| 89 | data |
| 90 | vsn Variance stabilization and calibration for |
| 91 | microarray data |
| 92 | xtable Export tables to LaTeX or HTML |
| 93 | |
| 94 | Packages in library '/usr/lib/R/site-library': |
| 95 | |
| 96 | abind Combine multi-dimensional arrays |
| 97 | acepack ace() and avas() for selecting regression |
| 98 | transformations |
| 99 | adapt adapt -- multidimensional numerical integration |
| 100 | bayesm Bayesian Inference for |
| 101 | Marketing/Micro-econometrics |
| 102 | bitops Functions for Bitwise operations |
| 103 | cairoDevice Cairo-based cross-platform antialiased graphics |
| 104 | device driver. |
| 105 | car Companion to Applied Regression |
| 106 | caTools Tools: moving window statistics, GIF, Base64, |
| 107 | ROC AUC, etc. |
| 108 | chron Chronological objects which can handle dates |
| 109 | and times |
| 110 | coda Output analysis and diagnostics for MCMC |
| 111 | combinat combinatorics utilities |
| 112 | date Functions for handling dates |
| 113 | DBI R Database Interface |
| 114 | Design Design Package |
| 115 | eco R Package for Ecological Inference in 2x2 |
| 116 | Tables |
| 117 | effects Effect Displays for Linear, Generalized Linear, |
| 118 | Multinomial-Logit, and Proportional-Odds Logit |
| 119 | Models |
| 120 | fArma ARMA Time Series Modelling |
| 121 | fAsianOptions EBM and Asian Option Valuation |
| 122 | fAssets Rmetrics - Assets Selection and Modelling |
| 123 | fBasics Rmetrics - Markets and Basic Statistics |
| 124 | fBonds Bonds and Interest Rate Models |
| 125 | fCalendar Chronological and Calendarical Objects |
| 126 | fCopulae Rmetrics - Dependence Structures with Copulas |
| 127 | fEcofin Economic and Financial Data Sets |
| 128 | fExoticOptions Exotic Option Valuation |
| 129 | fExtremes Rmetrics - Extreme Financial Market Data |
| 130 | fGarch Rmetrics - Autoregressive Conditional |
| 131 | Heteroskedastic Modelling |
| 132 | fImport Rmetrics - Economic and Financial Data Import |
| 133 | fMultivar Multivariate Market Analysis |
| 134 | fNonlinear Nonlinear and Chaotic Time Series Modelling |
| 135 | fOptions Basics of Option Valuation |
| 136 | fPortfolio Rmetrics - Portfolio Selection and Optimization |
| 137 | fRegression Regression Based Decision and Prediction |
| 138 | fSeries Financial Time Series Objects |
| 139 | fTrading Technical Trading Analysis |
| 140 | fUnitRoots Trends and Unit Roots |
| 141 | fUtilities Function Utilities |
| 142 | gdata Various R programming tools for data |
| 143 | manipulation |
| 144 | genetics Population Genetics |
| 145 | getopt C-like getopt behavior. |
| 146 | gmaps Wrapper and auxilliary functions for maps |
| 147 | package to work with grid graphics system. |
| 148 | gmodels Various R programming tools for model fitting |
| 149 | gplots Various R programming tools for plotting data |
| 150 | gregmisc Greg's Miscellaneous Functions |
| 151 | gtools Various R programming tools |
| 152 | haplo.stats Statistical Analysis of Haplotypes with Traits |
| 153 | and Covariates when Linkage Phase is Ambiguous |
| 154 | hdf5 HDF5 |
| 155 | Hmisc Harrell Miscellaneous |
| 156 | its Irregular Time Series |
| 157 | jit Just-in-time compiler for the R language |
| 158 | latticeExtra Extra Graphical Utilities Based on Lattice |
| 159 | lme4 Linear mixed-effects models using S4 classes |
| 160 | lmtest Testing Linear Regression Models |
| 161 | lpSolve Interface to Lp_solve v. 5.5 to solve |
| 162 | linear/integer programs |
| 163 | mapdata Extra Map Databases |
| 164 | mapproj Map Projections |
| 165 | maps Draw Geographical Maps |
| 166 | MatchIt MatchIt: Nonparametric Preprocessing for |
| 167 | Parametric Casual Inference |
| 168 | Matrix Sparse and Dense Matrix Classes and Methods |
| 169 | MCMCpack Markov chain Monte Carlo (MCMC) Package |
| 170 | misc3d Miscellaneous 3D Plots |
| 171 | mnormt The multivariate normal and t distributions |
| 172 | MNP R Package for Fitting the Multinomial Probit |
| 173 | Model |
| 174 | multcomp Simultaneous Inference in General Parametric |
| 175 | Models |
| 176 | mvtnorm Multivariate Normal and t Distributions |
| 177 | nws R functions for NetWorkSpaces and Sleigh |
| 178 | polspline Polynomial spline routines |
| 179 | pscl Political Science Computational Laboratory, |
| 180 | Stanford University |
| 181 | psy Various procedures used in psychometry |
| 182 | qtl Tools for analyzing QTL experiments |
| 183 | quadprog Functions to solve Quadratic Programming |
| 184 | Problems. |
| 185 | qvalue Q-value estimation for false discovery rate |
| 186 | control |
| 187 | Rcmdr R Commander |
| 188 | RColorBrewer ColorBrewer palettes |
| 189 | Rcpp Rcpp R/C++ interface package |
| 190 | relimp Relative Contribution of Effects in a |
| 191 | Regression Model |
| 192 | rggobi Interface between R and GGobi |
| 193 | rgl 3D visualization device system (OpenGL) |
| 194 | Rglpk R/GNU Linear Programming Kit Interface |
| 195 | RGtk2 R bindings for Gtk 2.8.0 and above |
| 196 | Rmetrics Rmetrics - Financial Engineering and |
| 197 | Computational Finance |
| 198 | Rmpi Interface (Wrapper) to MPI (Message-Passing |
| 199 | Interface) |
| 200 | RMySQL R interface to the MySQL database |
| 201 | robustbase Basic Robust Statistics |
| 202 | ROCR Visualizing the performance of scoring |
| 203 | classifiers. |
| 204 | RODBC ODBC Database Access |
| 205 | rpvm R interface to PVM (Parallel Virtual Machine) |
| 206 | RQuantLib R interface to the QuantLib library |
| 207 | Rserve Binary R server |
| 208 | rsprng R interface to SPRNG (Scalable Parallel Random |
| 209 | Number Generators) |
| 210 | RUnit R Unit test framework |
| 211 | sandwich Robust Covariance Matrix Estimators |
| 212 | sm Smoothing methods for nonparametric regression |
| 213 | and density estimation |
| 214 | sn The skew-normal and skew-t distributions |
| 215 | snow Simple Network of Workstations |
| 216 | strucchange Testing, Monitoring and Dating Structural |
| 217 | Changes |
| 218 | timeDate Rmetrics - Chronological and Calendarical |
| 219 | Objects |
| 220 | timeSeries Rmetrics - Financial Time Series Objects |
| 221 | tkrplot TK Rplot |
| 222 | tseries Time series analysis and computational finance |
| 223 | urca Unit root and cointegration tests for time |
| 224 | series data |
| 225 | VGAM Vector Generalized Linear and Additive Models |
| 226 | XML Tools for parsing and generating XML within R |
| 227 | and S-Plus. |
| 228 | Zelig Everyone's Statistical Software |
| 229 | zoo Z's ordered observations |
| 230 | |
| 231 | Packages in library '/usr/lib/R/library': |
| 232 | |
| 233 | base The R Base Package |
| 234 | boot Bootstrap R (S-Plus) Functions (Canty) |
| 235 | class Functions for Classification |
| 236 | cluster Cluster Analysis Extended Rousseeuw et al. |
| 237 | codetools Code Analysis Tools for R |
| 238 | datasets The R Datasets Package |
| 239 | foreign Read Data Stored by Minitab, S, SAS, SPSS, |
| 240 | Stata, Systat, dBase, ... |
| 241 | graphics The R Graphics Package |
| 242 | grDevices The R Graphics Devices and Support for Colours |
| 243 | and Fonts |
| 244 | grid The Grid Graphics Package |
| 245 | KernSmooth Functions for kernel smoothing for Wand & Jones |
| 246 | (1995) |
| 247 | lattice Lattice Graphics |
| 248 | MASS Main Package of Venables and Ripley's MASS |
| 249 | methods Formal Methods and Classes |
| 250 | mgcv GAMs with GCV smoothness estimation and GAMMs |
| 251 | by REML/PQL |
| 252 | nlme Linear and Nonlinear Mixed Effects Models |
| 253 | nnet Feed-forward Neural Networks and Multinomial |
| 254 | Log-Linear Models |
| 255 | rpart Recursive Partitioning |
| 256 | spatial Functions for Kriging and Point Pattern |
| 257 | Analysis |
| 258 | splines Regression Spline Functions and Classes |
| 259 | stats The R Stats Package |
| 260 | stats4 Statistical Functions using S4 Classes |
| 261 | survival Survival analysis, including penalised |
| 262 | likelihood. |
| 263 | tcltk Tcl/Tk Interface |
| 264 | tools Tools for Package Development |
| 265 | utils The R Utils Package |
| 266 | }}} |