This is a minimal example that shows how knitr works with pure HTML pages.
Boring stuff as usual:
We can also produce plots (centered by the option fig.align='center'):
fig.align='center'
Errors, messages and warnings can be put into divs with different classes:
div
class
Well, everything seems to be working. Let's ask R what is the value of π? Of course it is .
{=html}
xfun::file_string('file.html') <iframe src="http://www.clarkson.edu"></iframe>