Feature #564
TBX: x.x, R install.packages bug
Status: | Closed | Start date: | 01/30/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% |
|
Category: | Stats / R | Spent time: | - | |
Target version: | 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.
History
#1 Updated by Matthieu Decorde over 6 years ago
- Target version changed from TXM X.X to TXM 0.7.6
#2 Updated by Matthieu Decorde over 6 years ago
With Linux, running "install.library" from a Job seems to randomly provoke SIGPIPE errors
#3 Updated by Matthieu Decorde over 6 years ago
- Description updated (diff)
#4 Updated by Matthieu Decorde over 6 years ago
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 Updated by Matthieu Decorde over 6 years ago
- Description updated (diff)
#6 Updated by Matthieu Decorde over 6 years ago
- Description updated (diff)
#7 Updated by Matthieu Decorde over 6 years ago
- Description updated (diff)
#8 Updated by Matthieu Decorde over 6 years ago
- % Done changed from 0 to 80
#9 Updated by Matthieu Decorde over 6 years ago
- % Done changed from 80 to 90
#10 Updated by Matthieu Decorde over 6 years ago
- % Done changed from 90 to 100
#11 Updated by Matthieu Decorde over 6 years ago
- Status changed from New to Closed