-
Notifications
You must be signed in to change notification settings - Fork 1
/
render-example.Rmd
60 lines (42 loc) · 1.99 KB
/
render-example.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
title: "Render the example reports"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Render the example reports}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
**Before modifying anything** (data, report content, or style), render the
example report with the anonymized built-in data to ensure your system is set up
correctly.
Open `01_producer-report.qmd`. Click the `Render` button to generate an HTML
report or the `down arrow` (▼) to open a drop down menu to choose between HTML
or MS Word. Try rendering the example report in both formats.
If rendering to HTML, you can check the `Render on Save` option to automatically
update the preview whenever you save the document.
![](../man/figures/render.png){width="80%"
fig-alt="RStudio Quarto Render button with a dropdown for HTML and MS Word. Render on Save option is checked."}
If the rendered report doesn't immediately open, you can find it in your project
directory with the same name as the main Quarto `.qmd` file
(`01_producer-report.qmd`). Newly rendered files can usually be found at the
bottom of the files pane.
![](../man/figures/rendered_report_location.png){width="50%"
fig-alt="RStudio screenshot of files pane with boxes around the project directory path, the template 01_producer-report.qmd file, and the rendered report 01_producer-report.html"}
It should take no more than one minute to render a single example report.
<details closed>
<summary>Demo videos</summary>
**HTML**
<iframe src="https://drive.google.com/file/d/1c1gMBT8j5oF-CNyL9FyTfzPqSTQCGEIJ/preview" width="640" height="360" allow="autoplay; fullscreen;">
</iframe>
**MS Word**
<iframe src="https://drive.google.com/file/d/1jZxmmtS-SYdvNQoG2teOTLBkyneDB9v_/preview" width="640" height="360" allow="autoplay">
</iframe>
</details>
**See the [rendered example
reports](https://wa-department-of-agriculture.github.io/soils/articles/examples.html).**