Learn R Programming

samatha (version 0.41)

webdoc: Representation of a webpage in R

Description

Build a web document with the appropriate doctype

Usage

webdoc(doctype, ...)

Arguments

doctype
a doctype header, e.g. one of the elements of the list doctype
...
the contents of the webpage, typically a call to html_head() and a call to html_body()

Value

an object of class Samatha.Webdoc which is a character vector of length 1

Examples

Run this code
{
elements = list("apples", "oranges", "bananas")
webdoc("html5",html_head("My first page"),html_body("Hello world", unordered.list(elements)))
}

Run the code above in your browser using DataLab