[R-sig-Debian] little "r" cannot find packages

Stefan Franke stefanfranke at freenet.de
Thu Nov 26 20:08:42 CET 2009


Dear All

I want to use R, Rscript und r alternately under 
one common configuration. 
The problem is that \"r\" can't find the package \"Rmpi\"
and other packages whereas \"R\" has no problem to find. 

$ R --vanilla < mpiHelloWorld.r

 #!/usr/bin/env r
 library(Rmpi) # calls MPI_Init
 rk <- mpi.comm.rank(0)
 sz <- mpi.comm.size(0)
 name <- mpi.get.processor.name()
 cat( \"Hello, rank \" , rk, \"size\", sz, \"on\", name, \"\\n\")

Hello, rank 0 size 1 on lenny157 # ok.

$ Rscript mpiHelloWorld.r
Hello, rank 0 size 1 on lenny157 # ok.

$ r mpiHelloWorld.r
Error in library(Rmpi) : there is no package called 'Rmpi'

$ r -lRmpi -e 'cat(\"Hello\", mpi.get.processor.name())'
Error in library(Rmpi) : there is no package called 'Rmpi'

$ R --version
R version 2.9.2 (2009-08-24)

$r --version
r ('littler') version 0.1.0

I have installed the binaries for Lenny using apt-get.
Why can't \"r\" find its packages and how do I
have to change my configuration? 

with thanks
Stefan



Unbegrenzter Speicher, Top-Spamschutz, 120 SMS und eigene E-MailDomain inkl.
http://office.freenet.de/dienste/emailoffice/produktuebersicht/power/mail/index.html





More information about the R-SIG-Debian mailing list