Displaying 1 result from an estimated 1 matches for "lenny157".
Did you mean:
lenny1
2009 Nov 26
2
little "r" cannot find packages
...nilla < 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...