This is a minimal example which shows knitr working with HTML pages. See here for the output.
Boring stuff as usual:
We can also produce plots (centered by the
option fig.align='center'
):
Errors, messages and warnings can be put into div
's
with different class
es:
In the end, let's show off a 3D plot from the rgl package.
Well, everything seems to be working. Let's ask R what is the value of π? Of course it is .