What a treat it was to finally meet Charles Gray when she was in Sydney last week. She ran her R-Curious workshop for us and I picked up so many useful markdown tips.
We worked from an Rmarkdown document in the workshop so we could edit the code and add our own notes but we could also how Charles had used specific markdown formatting to produce the document.
Because it was a “lets start at the very beginning” workshop, made me realise that when you teach yourself how to code, there are basic (but quite useful) that you don’t end up learning via osmosis. Markdown notation might be one of those things.
##Markdown tips for the R-Curious
###1. Make headings using hashtags
Use a single # for big headings, two ## for smaller headings and three ### for even smaller headings
###2. Link to websites
Using a combination of square and round brackets. Put the text you want to appear in the doc in square brackets and the url in round brackets
[text for the link](url to link to)
i.e.
[Hadley Wickham RforDataScience](http://r4ds.had.co.nz/)
Hadley Wickham RforDataScience
###3. Insert bullets with a dash
###4. Make package names appear highlighted by putting them in backticks (same key as ~)
i.e
Load tidyverse
by using the function library(tidyverse)
###5. Italicise and bold
Change the formatting to italics but putting things them in *singleasteriks*
or bold by putting them in **doubleasteriks**
###6. RStudio navigation tips I didn’t know about