vignettes/srcpkgs_lotr_demo/hobbits/R/main.R

#' list the available hobbits
#' @return hobbit names as character
#' @export
hobbits <- function() {
  res <- list()
  # N.B: easier to edit programmatically in the vignette this way
  res$frodo <- frodo::frodo() # in imports
  res$bilbo <- bilbo() 

  res
}

Try the srcpkgs package in your browser

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

srcpkgs documentation built on May 29, 2024, 6:43 a.m.