Bug #635
RCP: 0.7.5, Ubuntu&Mac installers, R packages test too strict
| Statut: | Closed | Début: | 24/02/2014 | |
|---|---|---|---|---|
| Priorité: | Normal | Echéance: | ||
| Assigné à: | - | % réalisé: | 100% |
|
| Catégorie: | - | Temps passé: | - | |
| Version cible: | TXM 0.7.6 |
Description
see: LINK
The R package installation validation test is too strict and can cause TXM installation to stop even if package can work correctly
First solution was to call "library("...")" for each package during TXM start-up job.
But the "library("FactoMineR")" test does not works (it does work when called from a R script).
The tests has been moved to a new command in the Help menu: "Check R packages"
Validation test¶
- Run R
- exec remove.packages("FactoMineR") (don't work on my computer, but this is the official command to remove a package.)
- Run TXM
- A message should alert that FactoMineR is not present and show the Commands that won't work
To restore FactoMineR :
- Run R
- exec install.packages("FactoMineR")
Historique
#1 Mis à jour par Matthieu Decorde il y a plus de 11 ans
The package test has been moved from the installation script to TXM startup.
Each package is now tested. When a package could not be loaded a message is displayed to announce which commands won't work
(setup not yet updated)
#2 Mis à jour par Matthieu Decorde il y a plus de 11 ans
- Description mis à jour (diff)
#3 Mis à jour par Matthieu Decorde il y a plus de 11 ans
- Description mis à jour (diff)
#4 Mis à jour par Matthieu Decorde il y a plus de 11 ans
- Description mis à jour (diff)
#5 Mis à jour par Sebastien Jacquot il y a plus de 11 ans
Tested without the FactoMineR package and TXM shows this message at start up :
"TXM could not load the 'FactoMineR' R package. The Correspondance analysis, Classification commands won't be available"
(NOTE : CA command is still available in menus.)
#6 Mis à jour par Matthieu Decorde il y a plus de 11 ans
- Description mis à jour (diff)
#7 Mis à jour par Matthieu Decorde il y a plus de 11 ans
- Version cible changé de TXM 0.7.5 à TXM 0.7.6
#8 Mis à jour par Matthieu Decorde il y a plus de 11 ans
- Description mis à jour (diff)
- % réalisé changé de 0 à 80
#9 Mis à jour par Matthieu Decorde il y a plus de 11 ans
- Description mis à jour (diff)
Finally I won't put the test during TXM start-up. It generated a SIGPIPE error:
lors de l'évaluation de :library("FactoMineR")
at org.txm.stat.engine.r.RWorkspace.safeEval(RWorkspace.java:1408)
at org.txm.stat.engine.r.RWorkspace.eval(RWorkspace.java:1088)
at org.txm.rcpapplication.commands.CheckRPackages.check(CheckRPackages.java:54)
at org.txm.rcpapplication.ApplicationWorkbenchAdvisor$3.run(ApplicationWorkbenchAdvisor.java:459)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
org.txm.stat.engine.r.RException: ** Erreur R : "Error : ignoring SIGPIPE signal
#10 Mis à jour par Matthieu Decorde il y a plus de 11 ans
- % réalisé changé de 80 à 90
#11 Mis à jour par Matthieu Decorde il y a environ 11 ans
- % réalisé changé de 90 à 100
#12 Mis à jour par Matthieu Decorde il y a environ 11 ans
- Statut changé de New à Closed