vignettes/srcpkgs_lotr_demo/lotr/R/main.R

#' list all characters
#' @return as a list
#' @importFrom elves elves
#' @export
lotr <- function() {
  list(
    hobbits = hobbits(),
    elves = elves(),
    dwarves = dwarves(),
    humans = humans(),
    ainur = ainur()
  )
}

#' @importFrom gimli gimli
dwarves <- function() {
  list(gimli = gimli())
}

#' @importFrom aragorn aragorn
humans <- function() {
  list(aragorn = aragorn())
}

#' @importFrom gandalf gandalf
ainur <- function() {
  list(gandalf = gandalf())
}

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.