output_credits: Adds credits to a website

View source: R/output_credits.R

output_creditsR Documentation

Adds credits to a website

Description

Adds a credits section, which is automatically filled with the libraries used. These can be added to or edited.

Usage

output_credits(add = NULL, exclude = NULL)

Arguments

add

A list of credits to add. Each credit should be a list with at least entries for "name" and "url", and optionally a "version" and/or "description". These can be named, which will overwrite other credits with the same name.

exclude

Names of automatic credits to exclude. The automatic credits are "bootstrap", "leaflet" (from output_map), "plotly" (from output_plot), and "datatables" (from output_table).

Value

A character vector of the contents to be added.

Examples

## Not run: 
# adds an institution credit, and excludes the default colorbrewer credit
output_credits(
  list(name = "Institution", url = "https://example.com", description = "The institution."),
  "colorbrewer"
)

## End(Not run)

uva-bi-sdad/community documentation built on Oct. 12, 2023, 1:18 p.m.