class: center, middle, inverse, title-slide .title[ # Slides 01 ] .subtitle[ ## Drink Me !
Introduction to RMarkdown ] .author[ ### Arvind Venkatadri ] .institute[ ### Srishti Manipal Institute ] .date[ ### (2022-08-09) ] --- name: title_slide class: middle # To ~~err~~ R is human ### Let's talk about what RMarkdown is all about !! --- # What is RMarkdown? <img src="https://raw.githubusercontent.com/allisonhorst/stats-illustrations/main/rstats-artwork/rmarkdown_wizards.png" width="1000px" height="550px" style="display: block; margin: auto;" /> --- # 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"** --- # What is RMarkdown? Click on the File -> RMarkdown <img src="../../img/New-Rmd.png" width="850px" height="400px" style="display: block; margin: auto;" /> --- # Editing your Markdown .pull-left[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. ] .pull-right[ <img src="../../img/YAML.png" width="500px" height="450px" style="display: block; margin: auto;" /> ] --- # 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 --- # 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 `\(math stuff\)` (Nooo...please! No!) - "$sin^2(x)+cos^2(x) = 1$": `\(sin^2(x)+cos^2(x) = 1\)` (I think) - "emoji("laughing")" becomes ๐ --- # 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)**. --- # Knitting your Markdown ๐งถ Hitting the knit button ๐งถ does one of many things: .pull-left[ 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. ] .pull-right[ <img src="../../img/17.jpg" width="450px" height="450px" style="display: block; margin: auto;" /> ] --- class: center, middle # OK, Where are we? Are there any silent tears ?