## Creates a new web page 'test.html' in the R temporary directory
tmpdir <- tempdir()
p <- openPage('test.html', dirname=tmpdir)
hwrite('Iris example', p, center=TRUE, heading=1)
hwrite(iris, p, row.bgcolor='#ffa')
closePage(p)
## Opens a web browser on the web page
if (interactive()) try(browseURL(file.path(tmpdir, 'test.html')))Run the code above in your browser using DataLab