To me, learning something new always starts from stucking in some troubles. This time is the compiling error issued when I installed Rmpi for the first time.

Installation

It turns out Rmpi depends on open MPI, which should be installed by

$ brew install open-mpi

Then in R, install the package from source.

install.packages("Rmpi", type="source")

As to install Rmpi on server, we need some specification. This line works on radon.

R CMD INSTALL Rmpi_0.6-5.tar.gz --configure-args=--with-mpi=/apps/rhel6/openmpi/1.6.3/intel-13.1.1.163

Although this line can do the job, but it is not straight forward to get here.

  1. Download Rmpi_version.gz
  2. Add module
  module add r
  module add openmpi
  1. Check the directory of the openmpi via
  ompi_info
  1. Final step to install Rmpi
  R CMD INSTALL Rmpi_0.6-5.tar.gz --configure-args=--with-mpi=/apps/rhel6/openmpi/1.6.3/intel-13.1.1.163

Examples