This script provides a wrapper around Rscript for running MPI enabled R programs with a master-slave parallelism.
If you want the script to be available as a command from any directory, you can "install" it with
make install
which will copy it to /usr/local/bin
.
You can also "uninstall" it with
make uninstall
mpirun -n 4 mpi-Rscript <my-r-program>
Adapted from a script provided in the R "Snow" package.