IF: url to HTML iframe Tag

Description Usage Arguments Value References Examples

Description

Wrap a url to generate an HTML iframe tag.

Usage

1
2
3
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.

print

logical. If TRUE cat prints the output to the console. If FALSEreturns to the console.

copy2clip

logical. If TRUE attempts to copy the output to the clipboard.

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.

References

http://www.w3schools.com/tags/tag_iframe.asp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

trinker/reports documentation built on May 31, 2019, 9:51 p.m.