Complete the code to create an HTML report using R Markdown.
rmarkdown::render(input = "report.Rmd", output_format = [1])
To create an HTML report, use "html_document" as the output format in rmarkdown::render().
Complete the code to generate a PDF report from an R Markdown file.
rmarkdown::render(input = "summary.Rmd", output_format = [1])
Use "pdf_document" to create a PDF report with rmarkdown::render().
Fix the error in the code to produce a Word document from R Markdown.
rmarkdown::render(input = "doc.Rmd", output_format = [1])
To generate a Word document, use "word_document" as the output format.
Fill both blanks to create an HTML report with a custom output file name.
rmarkdown::render(input = [1], output_file = [2], output_format = "html_document")
The input should be the R Markdown file name, and output_file is the desired HTML file name.
Fill all three blanks to generate a PDF report with a custom output file and quiet mode enabled.
rmarkdown::render(input = [1], output_file = [2], output_format = [3], quiet = TRUE)
Use the R Markdown file as input, specify the PDF file name for output, and set the output format to "pdf_document".