Skip to main content

Get Help

<ins class="diffins">A minimal knitr example in HTML</ins>

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'):

Errors, messages and warnings can be put into divs with different classes:

Well, everything seems to be working. Let's ask R what is the value of π? Of course it is .

315-268-4357

{=html}

xfun::file_string('file.html')
<iframe src="http://www.clarkson.edu"></iframe>