Skip to content

Commit

Permalink
improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Sep 3, 2023
1 parent ae6143e commit cb00834
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
4 changes: 2 additions & 2 deletions R/mirai.R
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,12 @@ dispatcher <- function(host, url = NULL, n = NULL, asyncdial = FALSE,
#' @param .expr an expression to evaluate asynchronously (of arbitrary length,
#' wrapped in \{\} if necessary), \strong{or} a language object passed by
#' \link{name}.
#' @param ... (optional) named arguments (name = value pairs) specifying
#' @param ... (optional) named arguments (tag = value pairs) specifying
#' objects referenced in '.expr'. Used in addition to, and taking precedence
#' over, any arguments specified via '.args'.
#' @param .args (optional) \strong{either} a list of objects to be passed by
#' \link{name} (found in the current scope), \strong{or else} a list of
#' name = value pairs, as in '...'.
#' tag = value pairs, as in '...'.
#' @param .timeout [default NULL] for no timeout, or an integer value in
#' milliseconds. A mirai will resolve to an 'errorValue' 5 (timed out) if
#' evaluation exceeds this limit.
Expand Down
11 changes: 9 additions & 2 deletions R/pipe.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,15 @@
#'
#' \code{x \%>>\% f(y)} is equivalent to \code{f(x, y)}
#'
#' Please note that other usage is not supported and it is not a drop-in
#' replacement for magrittr's \code{\%>\%} pipe.
#' Other usage is not supported and it is not a drop-in replacement for
#' magrittr's \code{\%>\%} pipe.
#'
#' @note The deferred evaluation pipe is generally used where the return value
#' of the expression is required.
#'
#' For performing side effects upon resolution of a 'mirai', the promise
#' pipe \code{\%...>\%} may be more suitable (see the package
#' \pkg{mirai.promises}).
#'
#' @examples
#' if (interactive()) {
Expand Down
12 changes: 10 additions & 2 deletions man/deferred-execution-pipe.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/mirai.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cb00834

Please sign in to comment.