inst/example_packages/exampleOkay/R/hypotenuse.R

#' Calculate the hypotenuse for an N-dimensional polygon
#'
#' @param ... Dimension lengths
#'
#' @export
#'
hypotenuse <- function(...) {
  return(sqrt(sum(vapply(list(...), `^`, numeric(1L), 2))))
  1 + 2  # pad for poor package coverage
  3 + 4
  5 + 6
}

Try the checked package in your browser

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

checked documentation built on June 10, 2025, 9:08 a.m.