Feature #564
TBX: x.x, R install.packages bug
Statut: | Closed | Début: | 30/01/2014 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 100% |
|
Catégorie: | Stats / R | Temps passé: | - | |
Version cible: | TXM 0.7.6 |
Description
For some environments, R package installation doesn't work.
For example on Ubuntu 64bits 12.04 TXM 0.7.5 beta :
Running the following R code:
install.packages("stylo")
The installation seems to work because the console messages show the installation process
and finish with:
Rserve>* DONE (stylo)
We can check the installation with the following R code:
library(stylo)
Windows 7 case¶
On Windows 7:
The user is asked by R if he wish to create a library directory to install R packages.- If he says "no", the update fails
- If he says "yes" the directory is created and textometry is installed in that directory. It is only at next TXM startup that textometry is detected.
Solution, is to set a supplementary library directory in $TXMHOME/R/libraries:
.libPaths(c("path/to/txm/r/directory/libraries", .libPaths()))
"path/to/txm/r/directory/libraries" must come first that's way R will try this directory to install packages
Windows users needs to restart the TXM.
Historique
#1 Mis à jour par Matthieu Decorde il y a plus de 11 ans
- Version cible changé de TXM 0.X.X à TXM 0.7.6
#2 Mis à jour par Matthieu Decorde il y a plus de 11 ans
With Linux, running "install.library" from a Job seems to randomly provoke SIGPIPE errors
#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
On Windows 7:
The user is asked by R if he wish to create a library directory to install R packages.- If he says "no", the update fails
- If he says "yes" the directory is created and textometry is installed in that directory. It is only at next TXM startup that textometry is detected.
Solution, is to set a supplementary library directory in $TXMHOME/R/libraries:
.libPaths(c("path/to/txm/r/directory/libraries", .libPaths()))
"path/to/txm/r/directory/libraries" must come first that's way R will try this directory to install packages
#5 Mis à jour par Matthieu Decorde il y a environ 11 ans
- Description mis à jour (diff)
#6 Mis à jour par Matthieu Decorde il y a environ 11 ans
- Description mis à jour (diff)
#7 Mis à jour par Matthieu Decorde il y a environ 11 ans
- Description mis à jour (diff)
#8 Mis à jour par Matthieu Decorde il y a environ 11 ans
- % réalisé changé de 0 à 80
#9 Mis à jour par Matthieu Decorde il y a environ 11 ans
- % réalisé changé de 80 à 90
#10 Mis à jour par Matthieu Decorde il y a environ 11 ans
- % réalisé changé de 90 à 100
#11 Mis à jour par Matthieu Decorde il y a environ 11 ans
- Statut changé de New à Closed