Skip to content

Latest commit

 

History

History
94 lines (50 loc) · 3.63 KB

Rmarkdown.md

File metadata and controls

94 lines (50 loc) · 3.63 KB

R Studio

Integrates into a single window:

  • R console (CLI)
  • text editor
  • file/environment/history/help browser(s)
  • graphic viewer

Makes it easy to dive into R!

What is R Markdown?

  • Plain text formatting syntax (markup language)
  • Originally designed for creating web documents
  • Easy-to-read and easy-to-write
  • Allows you to focus on content, rather than layout
  • Can be converted into virtually any format, e.g. .pdf, .html, .doc

The step by step guide to RmarkDown (courtsey of Charles Belinsky!)

For Windows Users:

  • Issues:

You need a LaTeX program (we will use MikTex)

MikTex needs to be installed for all users (this is not the default)

MiKTeX needs privileges to install packages on-the-fly (also, not the default)

  • Procedures:
  1. Go to MiKTex website and click Download

  2. Click on the downloaded file to install

  3. Accept the MikTeX copying conditions and click Next

  4. Change Installation Scope to Install MiKTeX for anyone who uses this computer

  5. Installation directory can stay to same ... click Next

  6. Settings options: Preferred Paper: 90% of the world uses A4 but the United States uses Letter

  7. Install missing packages on-the-fly: switch to Yes

  8. Click Next

  9. Review: click Start

Note: the first time you use execute RMarkDown Knit-to-PDF will take a LOOOONG time because MiKTeX is downloading many missing packages

For Mac Users:

The easiest way is to download MacTex here:

http://www.tug.org/mactex/

… click on MacTex Download

MacTex is straightforward – just download and install using all defaults. But MacTex is over 4GB – the network would throw a bit of a fit if everyone in the class was downloading this at the same time.

Note: The smaller LaTeX software linked on the page, BasicTeX, does not work with RMarkDown.

I tested this on Mac 10.12 (Sierra) and Mac 10.14 (Mojave).

Mac 10.15 (Catalina) is being released this September. Students should avoid upgrading to Catalina because setups like what this class demands are notorious for not working right on the first iteration of a new Mac OS.

To learn more see:

Back