url to HTML iframe Tag

Usage

IF(path = "clipboard", width = 640, height = 360, center = TRUE, print = FALSE, copy2clip = interactive(), 
  text = "Your browser does not support iframes.")

Arguments

path
A character vector url/tag copied to the clipboard. Default is to read from the clipboard.
width
The width of the iframe.
height
The height of the iframe.
center
logical. If TRUE the image will be centered, if FALSE image will be left justified.
copy2clip
logical. If TRUE attempts to copy the output to the clipboard.
print
logical. If TRUE cat prints the output to the console. If FALSEreturns to the console.
text
character vector of text to display for browser that do not support iframe tags.

Value

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

Description

Wrap a url to generate an HTML iframe tag.

Examples

IF("https://dl.dropboxusercontent.com/u/61803503/MWE.html", print = TRUE)
IF("http://www.online-stopwatch.com/countdown-clock/full-screen/", height=400, center = TRUE, print = TRUE)
IF("http://www.dosketch.com/", width=1100, height=650, print=TRUE)
IF("http://glimmer.rstudio.com/pssguy/TVShowRatings/", width="100%", height=650, print=TRUE)
IF("https://dl.dropboxusercontent.com/u/61803503/Slides/reports/index.html", width=1150, height=750, print=TRUE)
IF("https://dl.dropboxusercontent.com/u/61803503/presentations/tmp.html", width=770, height=680, print=TRUE)