R/documentation.R

Defines functions seealso_pal seealso_transform seealso

# Functions used for producing Rd chunks to reduce duplication in
# documentation

seealso <- function(pattern) {
  require("scales")
  names <- ls("package:scales", pattern = pattern)
  paste0("\\code{\\link{", names, "}}", collapse = ", ")
}

seealso_transform <- function() seealso("^transform_")

seealso_pal <- function() seealso("^pal_")

Try the scales package in your browser

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

scales documentation built on July 4, 2024, 1:11 a.m.