OMPI_DIR=/usr/common/usg/openmpi/1.4.5/intel
; hence, we can adapt the code on this page (http://internet2.binghamton.edu/teragrid/readdoc.cgi?fname=1_1_Rmpi-Steele-2010-11-16.txt).Use the following code in R.
local({
my.configure.args <- list(
"Rmpi" =
c("--with-Rmpi-include=$OMPI_DIR/include",
"--with-Rmpi-libpath=$OMPI_DIR/lib",
"--with-Rmpi-type=OPENMPI")
);
options("configure.args" = my.configure.args);
options(repos=c(CRAN="http://cran.cnr.Berkeley.edu"));
})