viewHTML | R Documentation |
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;}")
x |
The HTML fragment |
title |
The title |
css |
CSS |
Invisibly, x
, with the extra HTML bits added.
### Only run this example in an interactive R session, ### as it shows the HTML in the viewer. if (interactive()) { psyverse::viewHTML("<strong>Hello world!</strong>"); }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.