Skip to contents

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

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