Publishing R Markdown scripts on RPubs

RPubs is a free web-publishing platform for R Markdown files, provided by RStudio. You can create a free account on

We need 3 things to begin creating R Markdown (.rmd) files:

  • R
  • R Studio IDE version 0.96 or higher
  • knitr package

knitr package is used to reformat R into several different output formats, including HTML, markdown, or plain text. Check for more at

Once knitr is installed close and relaunch RStudio. Then go to the file menu and choose File -> New… choose R Markdown & create your rmd document.

Once Finished click the Knit HTML button to see the preview.

On the preview screen press the publish button to publish to