Section B.5 Knitting an R Markdown File
So far, we have created our R Markdown file, filled it with text, code, and we now have something tangible. So, how do we actually see it as an output?
At the top of your screen, you will see a new button that we have not seen before: "Knit". Knitting in real life typically means intertwining yarn or thread into one cohesive piece (usually clothes). In our case, knit does the same thing, but instead of yarn or thread, it intertwines all of the pieces of our R Markdown document. When we press the knit button, we get to see what the finished output looks like. After pressing knit, a popup will appear with the outputted version.
If it does not knit, you will get an error, which will indicate why it failed and what to fix, just like any other error in R.
When your document successfully knits, you are now ready to proudly share it with your friends, family, colleagues, and the world!
