Skip to content

Commit

Permalink
improve caller_arg() documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
DanChaltiel committed Feb 21, 2024
1 parent 84deb87 commit f53fa15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/cnd-abort.R
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,11 @@ NULL
#' - Use `@inheritParams rlang::args_error_context` to document an
#' `arg` or `error_arg` argument that takes `error_arg()` as default.
#'
#' @section Use in `print()`:
#' Note that `caller_arg()` will not work properly when redefining the
#' `print()` method, as the name of the object is not in the callstack.
#'
#'
#' @param arg An argument name in the current function.
#' @usage NULL
#'
Expand Down
6 changes: 6 additions & 0 deletions man/caller_arg.Rd

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

0 comments on commit f53fa15

Please sign in to comment.