11 | | |
12 | | |
| 11 | Pour pouvoir lancer l'application ''' stacomiR ''', il faut aller télécharger quelques packages à l'aide du code suivant : |
| 12 | {{{ |
| 13 | libraries=function() { |
| 14 | necessary = c('tcltk2', 'RODBC','ggplot2','gWidgets' ,'R2HTML','gWidgetsRGtk2', |
| 15 | 'lattice','RColorBrewer','Rcmdr','proto','xtable','XML','svMisc','Hmisc') |
| 16 | if(!all(necessary %in% installed.packages()[, 'Package'])) |
| 17 | install.packages(necessary[!necessary %in% installed.packages()[, 'Package']], dep = T) |
| 18 | require('tcltk2') |
| 19 | require('ggplot2') |
| 20 | require('gWidgets') |
| 21 | require('RODBC') |
| 22 | require('Hmisc') |
| 23 | options(guiToolkit = "RGtk2") |
| 24 | require('lattice') |
| 25 | require('RColorBrewer') |
| 26 | require('ggplot2usr') |
| 27 | require('proto') |
| 28 | require('xtable') |
| 29 | #require('Hmisc') |
| 30 | require('XML') |
| 31 | require('svMisc') |
| 32 | } |
| 33 | libraries() |
| 34 | }}} |