+ - 0:00:00
Notes for current slide
Notes for next slide

Slides 01

Drink Me !
Introduction to RMarkdown

Arvind Venkatadri

Srishti Manipal Institute

(2022-08-09)

1

To err R is human

Let's talk about what RMarkdown is all about !!

2

What is RMarkdown?

3

What is RMarkdown?

In an RMarkdown document:

  • What you type in text becomes your story

  • What you write as code makes your own figures ๐Ÿ“Š

    • code is written in fences with back-ticks
  • You can link in:

    • pictures ๐ŸŽจ
    • YT videos ๐ŸŽฅ from the web
  • Data / Code / Figures / Pictures / Document together

  • In a document that "computes"

4

What is RMarkdown?

Click on the File -> RMarkdown

5

Editing your Markdown

Edit the YAML header now. ( The stuff at the top between the three dashes)

  • Name your file

  • Write your name as author

  • Change Date if you wish

SAVE.

6

Editing your Markdown

  • Everything is text
  • Wrap Words in stars:

    • *italics*: Single stars give you italics

    • **bold**: Two stars give you bold text

    • ***bold italic***: Three stars bold italics

    • ~~deleted~~: Tildes give you deleted text

7

Editing your Markdown

  • Hashes(##) become new Section Titles in text

  • Ctrl+Alt+I / CMD+Alt+I give fenced code "chunks" which will "run". (Green "Play" button)

    • Hashes(#) inside code chunks give you new #comments in code
  • "$mathstuff$": becomes mathstuff (Nooo...please! No!)

    • "$sin^2(x)+cos^2(x) = 1$": sin2(x)+cos2(x)=1 (I think)
  • "emoji("laughing")" becomes ๐Ÿ˜†

8

Editing your Markdown

  • All this done with plain text.

  • Just your keyboard and you.

  • Mouses and Touchpads are for....(your favourite word of ridicule here).

9

Knitting your Markdown ๐Ÿงถ

Hitting the knit button ๐Ÿงถ does one of many things:

Changes your plain text to:

  • html NA, or PDF NA or Word NA

  • HTML webpage, or blog, or flexdashboards

  • An interactive presentation like this one

  • over 30 different output formats.

10

OK, Where are we?

Are there any silent tears ?

11

To err R is human

Let's talk about what RMarkdown is all about !!

2
Paused

Help

Keyboard shortcuts

โ†‘, โ†, Pg Up, k Go to previous slide
โ†“, โ†’, Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
Number + Return Go to specific slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
Esc Back to slideshow