draw_badge: Draw a GIVD or a version badge

View source: R/draw_badge.R

draw_badgeR Documentation

Draw a GIVD or a version badge

Description

Badges to insert in database pages for displaying the ID and link to the respective entry at GIVD (Global Index of Vegetation-Plot Databases).

This function writes the respective svg badge and suggests the markdown code needed to insert the badge in your site. Note that the markdown code may need edition.

Usage

draw_badge(
  id,
  path,
  version = Sys.Date(),
  link,
  type = "version",
  encoding = "UTF-8",
  ...
)

Arguments

id

A character value indicating the ID of the database in GIVD.

path

A character value indicatin the path where to write the svg file, including the file name.

version

A character value for the version, usually the date of the version.

link

A character value with a url to link the version badge (usually a page for the database).

type

The type of the badge, either "version" or "givd".

encoding

Character value indicating the encoding of the output file, passed to file().

...

Further arguments passed to file().


kamapu/vegtableDB documentation built on June 18, 2024, 1:13 a.m.