Quiz
This lesson is called Quiz, part of the R in 3 Months (Spring 2026) course. This lesson is called Quiz, part of the R in 3 Months (Spring 2026) course.
Test your knowledge with the questions below. Answers are not scored and do not affect your certification at the end of the program, so feel free to try as many times as you need. If you have any questions, don't hesitate to use the comments field or to contact Gracielle by email.
Quiz
What is the main difference between a Quarto document and an R script?
Quarto documents can contain several code and formatting languages, such as R, Python, bash, LaTeX and Typst.
Quarto documents (.qmd files) allow you to weave together code, its output, and narrative text with formatting (like headers, bold text, lists) to create reports, presentations, or websites. R scripts (.R files) contain only code and comments. Quarto is designed for literate programming and reproducible reporting.
R scripts (.R files) contain only code and comments. Quarto is designed for literate programming and reproducible reporting.
Within a Quarto document you can create code chunks that can be executed individually and when rendering. You can turn the execution off by modifying the code execution options.
You want your Quarto report to show the output of your code but not the code itself. Which code chunk option should you use?
|# eval: FALSE shows the code, but tells the system to not run it (no output).
The |# echo: FALSE option hides the code but shows the output. |# eval: FALSE would show the code but not run it (no output). |# include: FALSE would run the code but hide both code and output. |# message: FALSE only suppresses messages, not the code itself.
|# include: FALSE runs the code but hides both the code and the output.
|# message: FALSE only suppresses messages, not the code itself.
Have any questions? Put them below and we will help you out!
Course Content
144 Lessons
You need to be signed-in to comment on this post. Login.