Bug #2704

In some environments, on Windows, there might be a conflict between already installed R and TXM embedded R

Added by Sebastien Jacquot 7 months ago. Updated 6 months ago.

Status:New Start date:12/20/2019
Priority:Urgent Due date:
Assignee:- % Done:

0%

Category:Stats / R Spent time: -
Target version:TXM 0.8.2

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

History

#1 Updated by Sebastien Jacquot 7 months ago

  • Description updated (diff)

#2 Updated by Matthieu Decorde 6 months ago

  • Description updated (diff)

Also available in: Atom PDF