draw_badge: Draw a GIVD or a version badge

Description Usage Arguments

View source: R/draw_badge.R

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

1
2
3
4
5
6
7
8
9
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/vegtables2 documentation built on July 8, 2021, 7:57 a.m.