O'Reilly logo

R Data Analysis Cookbook - Second Edition by Kuntal Ganguly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the render function

In RStudio, document output can be generated using knitr by clicking on the knit button. You can also directly enter a command in the R command line. If you leave out the second argument, then the output specification in the markdown document determines the output format:

rmarkdown::render("introduction.Rmd","pdf_document").
  

To create the output in all formats mentioned in the markdown document, use the following command:

rmarkdown::render("introduction.Rmd","all")
  

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required