Lab-3: Drink Me!

Working with Quarto

Author

Arvind V

Published

March 10, 2023

Modified

Invalid Date

Introduction

We will get acquainted with the RMarkdown Quarto Document format, which allows us to mix text narrative, code, code-developed figures and items from the web in a seamless document.Then we can try to create something in the lines of what Hans Rosling did.

Something that can:

  • provide a visualization
  • provide insight
  • tell a story
  • is reproducible

Setting up Quarto

Quarto is installed along with RStudio. We can check if all is in order by running a check in the Terminal in RStudio.

The commands are:

  1. quarto check install
  2. quarto check knitr

If these come out with no errors then we are ready to fire up our first Quarto document.

Practice

Fire up a new Quarto document by going to: File -> New File -> Quarto Document.Switch to Visual mode, if it is not already there.

Use the visual mode tool bar.

Try to create Sections, code chunks, embedding images and tables.

Hit the Render button to see how the documents is converted into an html document.

References

  1. https://www.markdowntutorial.com

  2. https://quarto.org/docs/authoring/markdown-basics.html

  3. https://rmarkdown.rstudio.com/index.html

  4. https://ysc-rmarkdown.netlify.app/slides/01-basics.html Nice RMarkdown presentation and β€œcode movies” !

Assignment(s)

  1. Complete the markdown tutorial in
  2. Create a fresh Quarto document and use as many as possible of the RMarkdown constructs from the Cheatsheet [reference 1]

Fun Stuff

  1. https://rmarkdown.rstudio.com/lesson-1.html
  2. DesirΓ©e De Leon, Alison Hill: rstudio4edu: A Handbook for Teaching and Learning with R and RStudio, https://rstudio4edu.github.io/rstudio4edu-book/
Back to top