This week’s coding goals

The overarching goal for this week was to learn the basics of R markdown and become relatively decent at using R markdown to create and publish basic documents.

Achieving the goals

To do this I made this learning log as a html document on RStudio. I also played around with the features taught by Professor Navarro. For example, here’s a quote in blockquote format with a local image:

The problem with quotes found on the internet is that they are often not true. - Abraham Lincoln

Challenges and successes

Overall most features taught in the R markdown videos were relatively straightforward. For example, making a basic ToC was quite easy. I especially liked playing around with the available themes in the YAML header (darkly and journal are my favourite so far). Also, here’s me showing off my maths skills.

\[1/n[sin(x)]= ?\] remove \(n\)

\[= 1[si(x)]\] \[= six\] Some challenges I faced were…

1. Remembering where to put SPACES after the coding symbols. For example, I forgot to place whitespace after the # which meant they didn’t translate into proper headings in the html document.

2. Figuring out how to insert a local image.

3. Understanding the importance of BLANK ROWS. For example, sometimes the lists: 1. continued 2. on 3. like 4. this

Instead of:

  1. being formatted
  2. like this
  3. because I didn’t leave a blank row in between the last row of text and the first input of the list.

The next stage

I’m looking forward to the R coding involved in data visualization. Also I hope to learn more about formatting in R markdown such as changing font sizes, inserting backgrounds and formatting images.

print("note to self: gifs can be inserted via the URL image insertion method")
## [1] "note to self: gifs can be inserted via the URL image insertion method"