Rmarkdown allows you to generate html, pdf and even word files. You can easily integrate R as Python and make your analyses in the document in order to communicate your code or their outputs (e.g. automate a report).
Unlike latex and html markdown is very easy to read in its raw state. The layout, titles, tables etc… are very easy to handle and do not hinder readability.
Before going deeper into details, see how to easily create an html or a pdf (or others) with Rmarkdown using R studio:

Check this cheatsheet: https://rstudio.com/wp-content/uploads/2016/03/rmarkdown-cheatsheet-2.0.pdf
The header of a Rmarkdown file is by default structured as follow :
---
title: "My Title"
author: "Name"
date: "10/02/2021"
output: html_document
---
---
title: "My Title"
author: "Name"
date: "10/02/2021"
output:
html_document:
toc: true
number_sections: true
---
---
author: "Name"
abstract: "Abstract"
output:
pdf_document:
toc: true
number_sections: true
---
---
output:
html_document:
theme: flatly
---
To create a title in markdown you need to use a #
each # represents a title level. ## returns a
level two title.
To create a new paragraph just end a line with two spaces. Otherwise you can skip a line to start a new paragraph but there will be a space between the two paragraphs.
To write in italics or bold you only have to specify one
* or two ** respectively.
Escaped character (remember it from chap 3 ;) ) must be specified
with a \ before. \* give *
To write example of code without running it like this
import numpy as np just use
```import numpy as np```
Show image from your computer in the output

You can write directly in html, for example add a link to an
external webpage :
<a href="https://www.google.com/">Google</a>
You can write in \(\LaTeX\):
\(\frac{1}{2}\) . You just need to
write the equation between two $
To make bulletpoints like this:
knitr::opts_chunk$set(echo = TRUE)
You can set there chunk option for all you document, you can specify if we will see the code, the output, warnings, errors etc etc. Please see all options on the cheatsheet.
As you noted a chunk start with ```{}. First you
specify the language used within the chunk and then the title of the
chunk, after the comma, specify options for the given chunk :
```{r chunk1, error = T}
--- between two empty
lines or create a new title.rmarkdown::render('C:/Users/Beta/Documents/GitHub/M1_TDP/examples/Markdown/test.Rmd', 'pdf_document')
R -e "rmarkdown::render('C:/Users/Beta/Documents/GitHub/M1_TDP/examples/Markdown/test.Rmd', 'pdf_document')"
Github is a company that creates products that use the open source tool git. From wikipedia: “Git is a distributed version-control system for tracking changes in any set of files, originally designed for coordinating work among programmers cooperating on source code during software development.”.
A repository is usually used to organize a single project. Repositories can contain folders and files, images, videos, spreadsheets, and data sets etc, etc.
Now that the directory is created, collaborators can work on it and contribute to the project. The final version of the project can be found on the ‘main’ branch.
You can create a branch in order to start editing the project and save your changes on your own branch. Often branches will be linked to specific aspects of the project and will then be removed once the changes have been integrated into the final version.
Keeping your folder update
If you are working on different aspects of your project you probably want to integrate into your computer folder the changes made by your collaborators, so you should regularly check if any changes have been made to a given branch and pull origin if necessary. Make sure you check the changes made to the files before doing it!