After using lines 1-17 (and changing titles, or experimenting with figure settings), you can start!
# Use the Insert tag, to insert chunks of code
print("Hello World")
## [1] "Hello World"
Here's a cheat sheet for R Markdown
You can embed YouTube video's. Just go to the YouTube video, and click on share followed by embed. Copy and paste the code for embedding.
After "knitting" this R Markdown file, you will not directly see the video in the thing that pops up on your screen. But an html file is created, in the project folder.
If you click on that file, the full document opens in your browser. Or you can publish it via, for example, RPubs, to share it with the rest of the world.
Text
And so on
And so on ...