Skip to content

Commit 8be3e69

Browse files
gogonzoaverissimo
andauthored
Apply suggestions from code review
Co-authored-by: André Veríssimo <[email protected]> Signed-off-by: Dawid Kałędkowski <[email protected]>
1 parent 98021e2 commit 8be3e69

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

R/qenv-eval_code.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#' `expression` being a result of `parse(keep.source = TRUE)`.
1212
#'
1313
#' @return
14-
#' Returns a `qenv` object with `code/expr` evaluated or `qenv.error` if evaluation fails.
14+
#' `qenv` environment with `code/expr` evaluated or `qenv.error` if evaluation fails.
1515
#'
1616
#' @examples
1717
#' # evaluate code in qenv

R/qenv-get_code.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
#' - creating and evaluating language objects, _e.g._ `eval(<call>)`
7777
#'
7878
#' @return
79-
#' Returns the traced code in the form specified by `deparse`.
79+
#' The code used in the `qenv` in the form specified by `deparse`.
8080
#'
8181
#' @examples
8282
#' # retrieve code

R/qenv-within.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#' @details
22
#' `within()` is a convenience method that wraps `eval_code` to provide a simplified way of passing expression.
33
#' `within` accepts only inline expressions (both simple and compound) and allows to substitute `expr`
4-
#' with the `...` argument values.
4+
#' with `...` named argument values.
55
#'
66
#' @section Using language objects with `within`:
77
#' Passing language objects to `expr` is generally not intended but can be achieved with `do.call`.
88
#' Only single `expression`s will work and substitution is not available. See examples.
99
#'
1010
#' @param data (`qenv`)
1111
#' @param expr (`expression`) to evaluate. Must be inline code, see `Using language objects...`
12-
#' @param ... (`named`) argument value will substitute a symbol in the `expr` matched by the name.
13-
#' For practical examples see the #usage.
12+
#' @param ... named argument value will substitute a symbol in the `expr` matched by the name.
13+
#' For practical examples see the [usage](#ref-usage) above.
1414
#'
1515
#'
1616
#' @examples

0 commit comments

Comments
 (0)