Bug #2704
In some environments, on Windows, there might be a conflict between already installed R and TXM embedded R
Statut: | New | Début: | 20/12/2019 | |
---|---|---|---|---|
Priorité: | Urgent | Echéance: | ||
Assigné à: | - | % réalisé: | 0% |
|
Catégorie: | Stats / R | Temps passé: | - | |
Version cible: | TXM 0.8.4 |
Description
WIP:
In some environments, on Windows, there might be a conflict between already installed R and TXM embedded R.
The bug has been reported on Windows.
Example of R error:
Error in readRDS(pfile) : impossible de lire une version 3 d'un environnement de travail écrit par R 3.6.0 ; besoin d'un R 3.5.0 ou plus récent
First diagnostic:
It may be related to the path of libraries that seems to be shared between the both installed R.
TODO:
Add the logs and mail discussions to this issue.
Logs:
Vérification des packages R : Sortie console TXM :
Vérification des paquets R…org.txm.statsengine.r.core.exceptions.RException: library("textometry"); ** Erreur R : "Error in readRDS(pfile) : impossible de lire une version 3 d'un environnement de travail écrit par R 3.6.0 ; besoin d'un R 3.5.0 ou plus récent " lors de l'évaluation de : try({library("textometry")}, silent=FALSE) at org.txm.statsengine.r.core.RWorkspace.eval(RWorkspace.java:1119) at org.txm.statsengine.r.rcp.handlers.CheckRPackages.check(CheckRPackages.java:106) at org.txm.statsengine.r.rcp.handlers.CheckRPackages.execute(CheckRPackages.java:62) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:291) at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:92) ... at org.eclipse.equinox.launcher.Main.run(Main.java:1499) Caused by: org.txm.statsengine.r.core.exceptions.RException: ** Erreur R : "Error in readRDS(pfile) : impossible de lire une version 3 d'un environnement de travail écrit par R 3.6.0 ; besoin d'un R 3.5.0 ou plus récent " lors de l'évaluation de : try({library("FactoMineR")}, silent=FALSE) at org.txm.statsengine.r.core.RWorkspace.eval(RWorkspace.java:1119) at org.txm.statsengine.r.rcp.handlers.CheckRPackages.check(CheckRPackages.java:106) at org.txm.statsengine.r.rcp.handlers.CheckRPackages.execute(CheckRPackages.java:62) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:291) at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:92) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590) at org.eclipse.equinox.launcher.Main.run(Main.java:1499) Caused by: org.txm.statsengine.r.core.exceptions.RException: ** Erreur R : "Error in readRDS(pfile) : impossible de lire une version 3 d'un environnement de travail écrit par R 3.6.1 ; besoin d'un R 3.5.0 ou plus récent "
Solution¶
1- upgrade the R debug macro to show system paths
2- find out if some library paths are shared with another R installation
3- fix R paths
Historique
#1 Mis à jour par Sebastien Jacquot il y a presque 6 ans
- Description mis à jour (diff)
#2 Mis à jour par Matthieu Decorde il y a plus de 5 ans
- Description mis à jour (diff)
#3 Mis à jour par Matthieu Decorde il y a plus de 4 ans
- Version cible changé de TXM 0.8.2 à TXM 0.8.4