# Save code in a file "demo.r" and run with 2 processors by
# > mpiexec -np 2 Rscript demo.r
### Initial
library(pbdMPI, quietly = TRUE)
init()
.comm.size <- comm.size()
.comm.rank <- comm.rank()
### Examples
info.create(0L)
info.create(0L, "file", "appschema")
### Finish
finalize()
Run the code above in your browser using DataLab