Skip to content

Commit 91d270a

Browse files
committed
use stronger attribution
1 parent 143081a commit 91d270a

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

R/utils.R

+9-4
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,15 @@ assert_sufficient_f_args <- function(f, ..., n_mandatory_f_args = 2L) {
189189
#' `as_slide_computation()` transforms a one-sided formula into a function.
190190
#' This powers the lambda syntax in packages like purrr.
191191
#'
192-
#' This is an extension of `rlang::as_function` that can create functions that
193-
#' take three arguments. The arguments can be accessed via the idiomatic
194-
#' `.x`, `.y`, etc, positional references (`..1`, `..2`, etc), and also by
195-
#' `slide`-specific names.
192+
#' This code and documentation borrows heavily from [`rlang::as_function`]
193+
#' (https://github.com/r-lib/rlang/blob/c55f6027928d3104ed449e591e8a225fcaf55e13/R/fn.R#L343-L427).
194+
#'
195+
#' This code extends `rlang::as_function` to create functions that take three
196+
#' arguments. The arguments can be accessed via the idiomatic `.x`, `.y`,
197+
#' etc, positional references (`..1`, `..2`, etc), and also by `epi
198+
#' [x]_slide`-specific names.
199+
#'
200+
#' @source https://github.com/r-lib/rlang/blob/c55f6027928d3104ed449e591e8a225fcaf55e13/R/fn.R#L343-L427
196201
#'
197202
#' @param x A function or formula.
198203
#'

man/epix_slide.Rd

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)