Skip to content

Create an R Markdown file

murraycadzow edited this page Nov 6, 2014 · 8 revisions

Now that you have a local version of the repository you can open it back up.

  • File -> Open Project -> Find the project
    • or use File -> Recent Projects

Create a new R markdown script

  • File -> New File -> R Markdown
    • Install required packages
  • Give it a title
  • Save this file in the project directory as _example.Rmd

You will have the default R markdown example

Have a read through this document and then click "Knit HTML" to run it

SUCCESS!!

You have now run an analysis using R markdown

Now use the drop-down-arrow next to "Knit HTML" and select PDF

  • Click Knit PDF

If it fails you may have got an message about needing TeX. Follow the instructions to install and restart Rstudio. We have put a copy of the file you need on the XSan (Merriman Documents/Software/MacTeX.pkg)

Now since you have created a new file, your project is now different to what is stored in the remote github repository

Now we need to update the remote repository so others can keep up-to-date

Lets move on to using the [github features](Github features)

Clone this wiki locally