| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/111_pbd_opt.r |
| 3 |
\name{Set Control Functions} |
| 4 |
\alias{Set Control Functions} |
| 5 |
\alias{pbd_opt} |
| 6 |
\title{Set controls in pbdZMQ} |
| 7 |
\usage{ |
| 8 |
pbd_opt(..., bytext = "", envir = .GlobalEnv) |
| 9 |
} |
| 10 |
\arguments{ |
| 11 |
\item{...}{in argument format \code{option = value} to set |
| 12 |
\code{.pbd_env$option <- value} inside the \code{envir}} |
| 13 |
|
| 14 |
\item{bytext}{in text format \code{"option = value"} to set |
| 15 |
\code{.pbd_env$option <- value} inside the \code{envir}.} |
| 16 |
|
| 17 |
\item{envir}{by default the global environment is used.} |
| 18 |
} |
| 19 |
\value{ |
| 20 |
No value is returned. |
| 21 |
} |
| 22 |
\description{ |
| 23 |
Set control functions |
| 24 |
} |
| 25 |
\details{ |
| 26 |
\code{pbd_opt()} sets pbd options for ZMQ controls. |
| 27 |
|
| 28 |
\code{...} allows multiple options in |
| 29 |
\code{envir$.pbd_env}, but only in a simple way. |
| 30 |
|
| 31 |
\code{bytext} allows to assign options by text in |
| 32 |
\code{envir$.pbd_env}, but can assign advanced objects. For example, |
| 33 |
\code{"option$suboption <- value"} will set |
| 34 |
\code{envir$.pbd_env$option$suboption <- value}. |
| 35 |
} |
| 36 |
\examples{ |
| 37 |
\dontrun{ |
| 38 |
library(pbdZMQ, quietly = TRUE) |
| 39 |
|
| 40 |
ls(.pbd_env) |
| 41 |
rm(.pbd_env) |
| 42 |
.zmqopt_init() |
| 43 |
ls(.pbd_env) |
| 44 |
|
| 45 |
.pbd_env$ZMQ.SR$BLOCK |
| 46 |
pbd_opt(bytext = "ZMQ.SR$BLOCK <- 0L") |
| 47 |
} |
| 48 |
|
| 49 |
} |
| 50 |
\references{ |
| 51 |
ZeroMQ/4.1.0 API Reference: |
| 52 |
\url{https://libzmq.readthedocs.io/en/zeromq4-1/} |
| 53 |
|
| 54 |
Programming with Big Data in R Website: \url{https://pbdr.org/} |
| 55 |
} |
| 56 |
\seealso{ |
| 57 |
\code{\link{.pbd_env}}. |
| 58 |
} |
| 59 |
\author{ |
| 60 |
Wei-Chen Chen \email{[email protected]} and Drew Schmidt. |
| 61 |
} |
| 62 |
\keyword{programming} |