tests/testthat/fake_function.R

#' fake function

#' @param x a value

#' @importFrom magrittr %>%
#' @examples
#' library(magrittr)
#' \dontrun{
#' fakepkg::fun()
#' }
#' @export
my_length <- function(x) {
  x %>% length()
}

Try the attachment package in your browser

Any scripts or data that you put into this service are public.

attachment documentation built on April 4, 2025, 12:05 a.m.