Bug #2881
R perspective, R package installation broken
| Statut: | New | Début: | 24/07/2020 | ||
|---|---|---|---|---|---|
| Priorité: | High | Echéance: | |||
| Assigné à: | - | % réalisé: | 30% |
||
| Catégorie: | Stats / R | Temps passé: | - | ||
| Version cible: | TXM 0.8.4 | Temps estimé: | 20.00 heures |
Description
It is no more possible to run the basic "Tutorial to use the stylometric tools of the Stylo R package into TXM":
https://groupes.renater.fr/wiki/txm-users/public/tutorial_to_use_stylo_into_txm
When installing the stylo package, we get the following stacktrace:
Exécution de session1.R…
R-err>Installing package into ‘/home/sheiden/TXM-0.8.1/R/libraries’
** Erreur lors de l'exécution du script R /home/sheiden/TXM-0.8.1/scripts/R/session1.R : org.txm.statsengine.r.core.exceptions.RException: install.packages("stylo")
; ** Erreur R : "Error in contrib.url(repos, type) :
trying to use CRAN without setting a mirror
"
lors de l'évaluation de : try({install.packages("stylo")
}, silent=FALSE) .
org.txm.statsengine.r.core.exceptions.RException: install.packages("stylo")
; ** Erreur R : "Error in contrib.url(repos, type) :
trying to use CRAN without setting a mirror
"
lors de l'évaluation de : try({install.packages("stylo")
}, silent=FALSE)
at org.txm.statsengine.r.core.RWorkspace.eval(RWorkspace.java:1148)
at org.txm.statsengine.r.core.RScriptEngine.executeScript(RScriptEngine.java:124)
at org.txm.rcp.handlers.scripts.ExecuteScript.executeScript(ExecuteScript.java:206)
at org.txm.rcp.handlers.scripts.ExecuteScript.execute(ExecuteScript.java:178)
...
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
Caused by: org.txm.statsengine.r.core.exceptions.RException: ** Erreur R : "Error in contrib.url(repos, type) :
trying to use CRAN without setting a mirror
"
lors de l'évaluation de : try({install.packages("stylo")
}, silent=FALSE)
at org.txm.statsengine.r.core.RWorkspace.safeEval(RWorkspace.java:1559)
at org.txm.statsengine.r.core.RWorkspace.eval(RWorkspace.java:1141)
... 46 more
Exécution de session1.R…
Solution 1¶
- use "https://cloud.r-project.org" as default packages repository
- add the new R preference : "packages repository"
Not enough :
Warning: unable to access index for repository https://cloud.r-project.org/src/contrib: les routines internet ne peuvent pas être chargées
Solution 2¶
Open the R package repository dialog box or open a SWT dialog box (clone of the R dialog box)
Historique
#1 Mis à jour par Matthieu Decorde il y a environ 5 ans
- Sujet changé de R Perspective broken à R perspective, R package installation broken
- Description mis à jour (diff)
#2 Mis à jour par Matthieu Decorde il y a plus de 4 ans
- Description mis à jour (diff)
- Version cible changé de TXM 0.8.2 à TXM 0.8.4
- % réalisé changé de 0 à 30
- Temps estimé mis à 20.00