This function displays HTML in the viewer, adding <body> and <head> tags (which should therefore not be included in the fragment).

viewHTML(x, title = "Psyverse", css = "body {font-size: 16px;}")

Arguments

x

The HTML fragment

title

The title

css

CSS

Value

Invisibly, x, with the extra HTML bits added.

Examples

psyverse::viewHTML("<strong>Hello world!</strong>");
#> Error: 'viewHTML' is not an exported object from 'namespace:psyverse'