On 30 November 2009 at 08:50, Stefan Franke wrote:
| You were right, I have different paths for my libraries:
| 
| vmu...@lenny157:~$ r -e 'print(.libPaths())' 
| [1] \"/usr/local/lib/R/site-library\" \"/usr/lib/R/site-library\" 
| [3] \"/usr/lib/R/library\" \"/usr/lib64/R/library\" 
|  
| vmu...@lenny157:~$ Rscript -e 'print(.libPaths())'
| [1] \"/usr/local/lib64/R/library\"
| 
| vmu...@lenny157:~$ echo 'print(.libPaths())' | R --slave
| [1] \"/usr/local/lib64/R/library\"
| 
| I fixed this by a simple link:
| 
| > ln -s /usr/local/lib64/R/library/Rmpi /usr/local/lib/R/site-library
| > ln -s /usr/local/lib64/R/library/snow /usr/local/lib/R/site-library
| 
| It works, but this is not the best way to do it.
| What would be your favorite way to set the paths?

You did something to your system that made this different. Recall that on my
system all answers (via r, Rscript, R) are the same.  So just undo what you
did that make your system different.

Else, read   help(Startup)  about how to initialize these things for R
sessions.  The R package for Debian / Ubuntu uses /etc/R/Renviron for this.

Or, as I said, modify your scripts to give the needed path to library() and /
or modify your use of install.packages() to specify a path to install into.

Dirk

-- 
Three out of two people have difficulties with fractions.

_______________________________________________
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian

Reply via email to