Bug #635

RCP: 0.7.5, Ubuntu&Mac installers, R packages test too strict

Added by Matthieu Decorde over 5 years ago. Updated about 5 years ago.

Status:Closed Start date:02/24/2014
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:- Spent time: -
Target version: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")

History

#1 Updated by Matthieu Decorde over 5 years ago

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 Updated by Matthieu Decorde over 5 years ago

  • Description updated (diff)

#3 Updated by Matthieu Decorde over 5 years ago

  • Description updated (diff)

#4 Updated by Matthieu Decorde over 5 years ago

  • Description updated (diff)

#5 Updated by Sebastien Jacquot over 5 years ago

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 Updated by Matthieu Decorde over 5 years ago

  • Description updated (diff)

#7 Updated by Matthieu Decorde over 5 years ago

  • Target version changed from TXM 0.7.5 to TXM 0.7.6

#8 Updated by Matthieu Decorde over 5 years ago

  • Description updated (diff)
  • % Done changed from 0 to 80

#9 Updated by Matthieu Decorde over 5 years ago

  • Description updated (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 Updated by Matthieu Decorde about 5 years ago

  • % Done changed from 80 to 90

#11 Updated by Matthieu Decorde about 5 years ago

  • % Done changed from 90 to 100

#12 Updated by Matthieu Decorde about 5 years ago

  • Status changed from New to Closed

Also available in: Atom PDF