Convert path/url to HTML Tag

Usage

IM(text = "clipboard", copy2clip = TRUE, print = TRUE)

Arguments

text
character vector url/path copied to the clipboard. Default is to read from the clipboard. Note that Windows users do not have to reorient slashes in local paths.
copy2clip
logical. If TRUE attempts to copy the output to the clipboard.
print
logical. If TRUE prints the output to the console.

Value

Returns a character vector of an HTML image tag that embeds an image.

Description

Wrap a path/url to generate an HTML tag. Often markup code: ![](url) lacks flexibility with centering and sizing. IM enables conrol of centering via altering the numeric value in width:420px and sizing via the numeric values supplied to height and width.

Examples

IM("http://cran.r-project.org/Rlogo.jpg")