Set global pbd options {pbdMPI} | R Documentation |
This is an advanced function to set pbdR options.
pbd_opt(..., bytext = "", envir = .GlobalEnv)
... |
in argument format |
bytext |
in text format |
envir |
by default the global environment is used. |
...
allows multiple options in
envir$.pbd_env
, but only in a simple way.
bytext
allows to assign options by text in
envir$.pbd_env
, but can assign advanced objects. For example,
"option$suboption <- value"
will set
envir$.pbd_env$option$suboption <- value
.
No value is returned.
Wei-Chen Chen wccsnow@gmail.com and Drew Schmidt.
Programming with Big Data in R Website: http://r-pbd.org/
.pbd_env
,
SPMD.CT()
,
SPMD.OP()
,
SPMD.IO()
,
SPMD.TP()
, and
.mpiopt_init()
.
## Not run: ### Save code in a file "demo.r" and run with 4 processors by ### SHELL> mpiexec -np 4 Rscript demo.r ### Initial. suppressMessages(library(pbdMPI, quietly = TRUE)) init() ### Examples. ls(.pbd_env) pbd_opt(ICTXT = c(2, 2)) pbd_opt(bytext = "grid.new <- list(); grid.new$ICTXT <- c(4, 4)") pbd_opt(BLDIM = c(16, 16), bytext = "grid.new$BLDIM = c(8, 8)") ls(.pbd_env) .pbd_env$ICTXT .pbd_env$BLDIM .pbd_env$grid.new ### Finish. finalize() ## End(Not run)