A brief introduction to markdown 

Now that you have deleted all of the content originally provided within the template, you actually find yourself in some kind of text field where it is possible to write down characters as in a common .txt file. To be more precise though, what you are going to write here will not be interpreted as common text but rather as Markdown code. Behind this name, there is a really convenient technical solution developed by John Gruber to provide people with a way to write in plain text documents that could lately be rendered as LaTeX, .pdf, or even .html

Basically, when you write in markdown, you don't have to worry about formatting or alignment anymore, since this will be eventually handled from subsequent rendering instruments, such as the rmarkdown functions in this case. All you have to worry about is specifying the headings and their levels, the need for some word or sentence being rendered as bold or italic, and some other stuff, such as hyperlinks and tables.

Let me give you a really small guide on how to deal with the most common elements, as follows:

Format Markdown
H1, first level heading #
H2, second level heading ##
H3, third level heading ###
bold **word**
italic *word*
hyperlink [title](http://)

 

Let's lay down the structure of our report, which will show the following main paragraphs:

  • Activity objectives
  • Analyzed data
  • Performed analyses
  • Results

We can go on defining each of these paragraphs within the document:

Let's, for the moment, skip the first paragraph, which will be the most descriptive one. Move on to the first code chunk, namely the setup chunk.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset