Task #516
RCP: 0.7.5 beta: check R package installation during installation
Status: | In Progress | Start date: | 01/13/2014 | ||
---|---|---|---|---|---|
Priority: | Normal | Due date: | |||
Assignee: | - | % Done: | 30% |
||
Category: | Setup | Spent time: | - | ||
Target version: | TXM X.X |
Description
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 #619)
- 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.
- StatEngine: Impossible to install the 'RServe' package, the Statistical Engine 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:
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))
History
#1 Updated by Matthieu Decorde over 9 years ago
- Subject changed from RCP: 0.7.5 beta: check r package installation during installation to RCP: 0.7.5 beta: check R package installation during installation
#2 Updated by Matthieu Decorde over 9 years ago
- % Done changed from 70 to 100
#3 Updated by Matthieu Decorde over 9 years ago
- Status changed from Feedback to Closed
#4 Updated by Matthieu Decorde over 9 years ago
- Description updated (diff)
- Category set to Setup
- Status changed from Closed to In Progress
- Target version changed from TXM 0.7.5 to TXM X.X
- % Done changed from 100 to 30
#5 Updated by Matthieu Decorde over 9 years ago
- Description updated (diff)