Recall & Review
beginner
What R package is commonly used to create HTML reports?
The rmarkdown package is commonly used to create HTML reports in R. It allows you to write documents mixing text and code that can be converted to HTML.
Click to reveal answer
beginner
How do you generate a PDF report from an R Markdown file?
You can generate a PDF report by setting
output: pdf_document in the YAML header of your R Markdown file and then knitting it. This requires a LaTeX installation.Click to reveal answer
intermediate
Which R package helps to create Word documents programmatically?
The officer package helps create and edit Word documents (.docx) programmatically in R.
Click to reveal answer
beginner
What is the role of the YAML header in R Markdown files?
The YAML header at the top of an R Markdown file specifies document options like the output format (HTML, PDF, Word), title, author, and more.
Click to reveal answer
intermediate
Why might you choose HTML output over PDF or Word in R reports?
HTML output is interactive, supports web features like links and animations, and is easy to share online. PDF and Word are better for printing or formal documents.
Click to reveal answer
Which package is primarily used to create HTML reports in R?
✗ Incorrect
The rmarkdown package is designed to create HTML, PDF, and Word reports by knitting R Markdown files.
What must you have installed to create PDF reports from R Markdown?
✗ Incorrect
Creating PDF reports requires a LaTeX distribution like TinyTeX to convert the markdown to PDF.
Which package allows you to create Word documents programmatically in R?
✗ Incorrect
The officer package is used to create and manipulate Word documents from R.
In R Markdown, where do you specify the output format like HTML or PDF?
✗ Incorrect
The YAML header at the top of the R Markdown file defines the output format.
Which output format supports interactive features like links and animations?
✗ Incorrect
HTML supports interactive web features, unlike PDF or Word.
Explain how to create an HTML report from an R Markdown file.
Think about the file header and the knitting process.
You got /3 concepts.
Describe the differences between HTML, PDF, and Word output formats in R reporting.
Consider how each format is used in real life.
You got /3 concepts.