Programming with pbdR requires usage of various packages developed by pbdR core team. Packages developed are the following.
Among these packages, pbdMPI provides wrapper functions to MPI library, and it also produces a shared library and a configuration file for MPI environments. All other packages rely on this configuration for installation and library loading that avoids difficulty of library linking and compiling. All other packages can directly use MPI functions easily.
Among those packages, the pbdDEMO package is a collection of 20+ package demos which offer example uses of the various pbdR packages, and contains a vignette that offers detailed explanations for the demos and provides some mathematical or statistical insight.
Hello World! Save the following code in a file called "demo.r"
and use the command
to execute the code where Rscript is one of command line executable program.
The following example modified from pbdMPI illustrates the basic syntax of the language of pbdR. Since pbdR is designed in SPMD, all the R scripts are stored in files and executed from the command line via mpiexec, mpirun, etc. Save the following code in a file called "demo.r"
The following example modified from pbdDEMO illustrates the basic ddmatrix computation of pbdR which performs singular value decomposition on a given matrix. Save the following code in a file called "demo.r"
Ostrouchov, G., Chen, W.-C., Schmidt, D., Patel, P. (2012). "Programming with Big Data in R".{{cite web}}: CS1 maint: multiple names: authors list (link) http://r-pbd.org ↩
Chen, W.-C. & Ostrouchov, G. (2011). "HPSC -- High Performance Statistical Computing for Data Intensive Research". Archived from the original on 2013-07-19. Retrieved 2013-06-25. https://web.archive.org/web/20130719020318/http://thirteen-01.stat.iastate.edu/snoweye/hpsc/ ↩
"Basic Tutorials for R to Start Analyzing Data". 3 November 2022. https://learnshareit.com/tutorials-for-r/ ↩
Yu, H. (2002). "Rmpi: Parallel Statistical Computing in R". R News. https://cran.r-project.org/package=Rmpi ↩
Mike Houston. "Folding@Home - GPGPU". Retrieved 2007-10-04. http://graphics.stanford.edu/~mhouston/ ↩
"100 most read R posts in 2012 (stats from R-bloggers) – big data, visualization, data manipulation, and other languages". http://www.r-bloggers.com/100-most-read-r-posts-for-2012-stats-from-r-bloggers-big-data-visualization-data-manipulation-and-other-languages/ ↩