powered by
This function displays HTML in the viewer, adding <body> and <head> tags (which should therefore not be included in the fragment).
<body>
<head>
viewHTML(x, title = "Psyverse", css = "body {font-size: 16px;}")
Invisibly, x, with the extra HTML bits added.
x
The HTML fragment
The title
CSS
### Only run this example in an interactive R session, ### as it shows the HTML in the viewer. if (interactive()) { psyverse::viewHTML("Hello world!"); }
Run the code above in your browser using DataLab