webdoc: Representation of a webpage in R

Description Usage Arguments Value Examples

View source: R/pages.R

Description

Build a web document with the appropriate doctype

Usage

1
  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

1
2
3
4
{
elements = list("apples", "oranges", "bananas")
webdoc("html5",html_head("My first page"),html_body("Hello world", unordered.list(elements)))
}

DASpringate/samatha documentation built on May 6, 2019, 1:16 p.m.