REPRODUCIBLE RESEARCH
USING QUARTO

2 Days Data Science Workshop at Institute of Development Studies, Jaipur (ICSSR)

DR. AJAY KUMAR KOLI, PHD

Quarto

Quarto

β€œAn open-source scientific and technical publishing system”

Quarto can produce a wide variety of output formats:

Articles & Reports

Presentations

Interactive Docs

Websites

Books

Analyze. Share. Reproduce.



Article
Demo

Quarto Workflow upon Rendering


Source Editor & Visual Editor


Visual Editor

Visual Editor

Visual Editor

Source Editor


Book
Demo

Text Formatting


Markdown Syntax Output
normal
normal
*italics*
italics
**bold**
bold
***bold italics***
bold italics

Text Formatting


Markdown Syntax Output
superscript^2^
superscript2
subscript~2~
subscript2
~~strike through~~
strike through
`verbatim code`
verbatim code

Headings


Markdown Syntax Output
# Header 1

Header 1

## Header 2

Header 2

### Header 3

Header 3

#### Header 4

Header 4

##### Header 5
Header 5
###### Header 6
Header 6

Add References

  1. Create a Bibliography File (.bib)

  2. Add Metadata to Your Quarto Document

  3. Cite Sources in Your Text

  4. Add a References Section

  5. Render the Document

Add Images from PC

If image is saved in your computer,
![](add image path here)


Markdown Syntax Output
![](images/ajay.png)

Add Online Images

If image is taken from the internet,
![](add image link here)


![](https://images.unsplash.com/photo-1627130595904-ebeeb6540a93?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D)

Unordered List


Markdown Syntax Output
* Item 1
* Item 2
* Item 3
  • Item 1
  • Item 2
  • Item 3

Unordered List: Sub-items


Markdown Syntax Output
* Main items
    + Sub-item 1
    + Sub-item 2
        - Sub-sub-item 1
  • Main items
    • Sub-item 1
    • Sub-item 2
      • Sub-sub-item 1

Ordered List


Markdown Syntax Output
1. Eggs
1. Tea
1. Fish
1. Milk
  1. Eggs
  2. Tea
  3. Fish
  4. Milk

List


Markdown Syntax Output
(@)  A list whose numbering

continues after

(@)  an interruption
  1. A list whose numbering

continues after

  1. an interruption

Equations

Use $ delimiters for inline math.


Markdown Syntax Output
It is a great equation $E = mc^{2}$
It is a great equation \(E=mc^{2}\)

Equations

Use $$ delimiters for display math.


Markdown Syntax Output
It is a great equation $$E = mc^{2}$$
It is a great equation \[E=mc^{2}\]

Videos

You can include videos in documents using the
{{< video >}} short code.


Code

{{< video https://www.youtube.com/embed/wo9vZccmqwc >}}

Output

Tables


Markdown Syntax

| Right | Left | Default | Center |
|------:|:-----|---------|:------:|
|   12  |  12  |    12   |    12  |
|  123  |  123 |   123   |   123  |
|    1  |    1 |     1   |     1  |

Output

Right Left Default Center
12 12 12 12
123 123 123 123
1 1 1 1

πŸ§‘πŸ½β€πŸ’»πŸ‘¨πŸ½β€πŸ’»
Question & Answer

🀯 Your Turn

1. What is Quarto primarily used for?

  1. Video editing
  2. Scientific and technical publishing
  3. Social media posting
  4. Web scraping

🀯 Your Turn

2. Which programming languages can be used with Quarto documents?

  1. Only R
  2. Only Python
  3. R, Python, Julia, and others
  4. Only Julia

🀯 Your Turn

3. Which file extension is used for Quarto source files?

  1. .qmd
  2. .rmd
  3. .txt
  4. .docx

🀯 Your Turn

4. What is one key feature of Quarto compared to R Markdown?

  1. It cannot generate PDFs
  2. It supports multiple programming languages in the same document
  3. It only works online
  4. It cannot create slides

🀯 Your Turn

5. Which command is used to render a Quarto document from the terminal?

  1. quarto publish
  2. quarto render
  3. quarto knit
  4. quarto compile

🀩 Your Turn Answers

  1. Correct answer: B) Scientific and technical publishing

  2. Correct answer: C) R, Python, Julia, and others

  3. Correct answer: A) .qmd

  4. Correct answer: B) It supports multiple programming languages in the same document

  5. Correct answer: B) quarto render