Task #516

RCP: 0.7.5 beta: check R package installation during installation

Ajouté par Matthieu Decorde il y a plus de 11 ans. Mis à jour il y a plus de 11 ans.

Statut:In Progress Début:13/01/2014
Priorité:Normal Echéance:
Assigné à:- % réalisé:

30%

Catégorie:Setup Temps passé: -
Version cible:TXM 0.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.
  • 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))

Historique

#1 Mis à jour par Matthieu Decorde il y a plus de 11 ans

  • Sujet changé de RCP: 0.7.5 beta: check r package installation during installation à RCP: 0.7.5 beta: check R package installation during installation

#2 Mis à jour par Matthieu Decorde il y a plus de 11 ans

  • % réalisé changé de 70 à 100

#3 Mis à jour par Matthieu Decorde il y a plus de 11 ans

  • Statut changé de Feedback à Closed

#4 Mis à jour par Matthieu Decorde il y a plus de 11 ans

  • Description mis à jour (diff)
  • Catégorie mis à Setup
  • Statut changé de Closed à In Progress
  • Version cible changé de TXM 0.7.5 à TXM 0.X.X
  • % réalisé changé de 100 à 30

#5 Mis à jour par Matthieu Decorde il y a plus de 11 ans

  • Description mis à jour (diff)

Formats disponibles : Atom PDF