Functions to create image elements.
img_get(
name,
dir = file.path("img"),
width = NULL,
height = NULL,
as_html = TRUE,
style = NULL,
collapse = " ",
default = "",
verbose = FALSE
)
img_link(
link,
img,
alt = NULL,
width,
class = "image",
id = NULL,
text_before = NULL,
text_after = NULL,
style = NULL
)
Image name.
Directory to look for image files in.
Image width.
Image height.
Wrap in HTML element.
HTML element style.
an optional character string to separate the results. Not
NA_character_
.
Default value when image file not found.
Print messages.
URL to use.
Path or URL to image.
HTML element alt description.
HTML element class.
HTML element id.
HTML element text before image.
HTML element text after image.
Formatted data.
img_get()
: img_
img_link()
: img_