flow: Layout HTML Content

Description Usage Arguments Value Author(s) See Also Examples

View source: R/flow.R

Description

This function generates information about the layout of HTML content.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
flow(html, ...)
## Default S3 method:
flow(html, ..., css="", assets=NULL)
## S3 method for class 'htmlDocument'
flow(html, width=NULL, height=NULL,
                            fonts="sans", device=currentDevice(),
                            engine=getOption("layoutEngine.backend"), ...)
## S3 method for class 'htmlElement'
flow(html, width=NULL, height=NULL,
                           fonts="sans", device=currentDevice(),
                           engine=getOption("layoutEngine.backend"), ...)

Arguments

html

A character vector, an "htmlDocument" object (as generated by htmlDocument, or an "htmlElement" object (as generated by htmlElement).

css

A character vector describing CSS styling for the HTML content.

assets

Zero or more paths to external assets (e.g., image files) for the HTML content.

width, height

grid units specifying the total width and height to use for the layout.

fonts

A character vector containing R font family names.

device

The name of the device that will be used to render the layout.

engine

The backend that will perform the layout (e.g., cssboxEngine from the layoutEngineCSSBox package).

...

Arguments used by methods.

Value

A "flowedhtml" object.

Author(s)

Paul Murrell

See Also

grid.html

Examples

1
flow("<p>test</p>")

pmur002/layoutengine documentation built on June 20, 2020, 10:32 p.m.