img_link: img_link

img_linkR Documentation

img_link

Description

Returns vector of html image links to files "file" with text "caption"

if embed = T, then will make img link, and additional arguments may be supplied to image tag (eg height, width)

Usage

img_link(file, caption = NULL, embed = F, ...)

Arguments

file

vector of (relative) image file paths to link to

caption

character vector of captions to add (= ”)

embed

logical flag whether to imbed images instead of returning links (=FALSE)

...

additional parameters to embed in tag (e.g. height and width)

Value

character vector of links (<a> tags) or image tags (<img> or <embed) to dump into an html document

Author(s)

Marcin Imielinski


mskilab/skitools documentation built on Aug. 31, 2023, 1:13 p.m.