YouTube url to iframe HTML Tag

Usage

YT(text = "clipboard", copy2clip = TRUE)

Arguments

text
character vector url/tag copied to the clipboard. Default is to read from the clipboard.
copy2clip
logical. If TRUE attempts to copy the output to the clipboard.

Value

Returns a character vector of an HTML iframe tag that embeds a YouTube video.

Description

Wrap a YouTube tag or url to generate an HTML iframe tag.

Examples

## YT("kws1PX1Dw9w")## YT("http://www.youtube.com/watch?v=kws1PX1Dw9w")