Task #516
Mis à jour par Matthieu Decorde il y a plus de 11 ans
Allow partial installation of R packages:
* for each component which does not work: StatEngine, Cooccurrence, Specificities, (FactoMineR.)CA, (FactoMineR.)CAH
* display a warning message containing:
** StatEngine: Impossible to install the 'RServe' package, the Statistical Engine will not be available.
*** set R_ENABLE preference to 'false' (needs to add R_ENABLE in RCP preferences, see ticket #zztop)
** Cooccurrence & Specificities: Impossible to install the 'textometry' package, the Cooccurrence & Specificities commands will not be available.
** (FactoMineR.)CA & (FactoMineR.)CAH: Impossible to install the 'FactoMineR' package, the Correspondence Analysis and Classification commands will not be available.
* If one problem at least, display warning message:
** If needed, correct the package installation problem directly in R.
* Complete the installation process
==========
Each R package installation must be tested during the installation.
Solution: Solution :
install.packages does not throw an exception when package is not found (wrong name, or too old version)
but library(foobar) throw an exception.
Solution: add the following lines to the R package installation script
tryCatch(library(FactoMineR), error=function(e) q(status=1))
tryCatch(library(Rserve), error=function(e) q(status=1))
tryCatch(library(textometry), error=function(e) q(status=1))
* for each component which does not work: StatEngine, Cooccurrence, Specificities, (FactoMineR.)CA, (FactoMineR.)CAH
* display a warning message containing:
** StatEngine: Impossible to install the 'RServe' package, the Statistical Engine will not be available.
*** set R_ENABLE preference to 'false' (needs to add R_ENABLE in RCP preferences, see ticket #zztop)
** Cooccurrence & Specificities: Impossible to install the 'textometry' package, the Cooccurrence & Specificities commands will not be available.
** (FactoMineR.)CA & (FactoMineR.)CAH: Impossible to install the 'FactoMineR' package, the Correspondence Analysis and Classification commands will not be available.
* If one problem at least, display warning message:
** If needed, correct the package installation problem directly in R.
* Complete the installation process
==========
Each R package installation must be tested during the installation.
Solution: Solution :
install.packages does not throw an exception when package is not found (wrong name, or too old version)
but library(foobar) throw an exception.
Solution: add the following lines to the R package installation script
tryCatch(library(FactoMineR), error=function(e) q(status=1))
tryCatch(library(Rserve), error=function(e) q(status=1))
tryCatch(library(textometry), error=function(e) q(status=1))