# a minimal example
writeLines(c("# hello markdown", "```{r hello-random, echo=TRUE}", "rnorm(5)", "```"),
"test.Rmd")
if (require("markdown")) {
knit2html("test.Rmd")
if (interactive())
browseURL("test.html")
}
Run the code above in your browser using DataLab