You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Sample model output data for coding demonstrations
51
49
52
50
::: {.callout-note appearance="minimal"}
53
51
Break for questions
@@ -237,10 +235,26 @@ params:
237
235
238
236
Then, in the body of your report, you can reference this parameter like this:
239
237
240
-
"The native range of \`params\$species\` spans from..."
238
+
* add a backtick (`)
239
+
* add lowercase 'r'
240
+
* add params + $ + the parameter itself
241
+
* add a backtick (`)
241
242
242
-
When you knit the document, \`params\$species\` will be replaced with "Petrale sole".
243
+
```{r eval=FALSE}
244
+
`r params$species`
245
+
```
246
+
247
+
Here is an example. NOTE that this example uses single quotes (') instead of backticks (`), otherwise this page won't render properly. But in your report, use the syntax directly above.
248
+
249
+
"The native range of 'r params$species' spans from..."
250
+
251
+
When you knit the document, 'r params$species' will be replaced with "Petrale sole".
243
252
253
+
::: {.callout-tip}
254
+
To make the species name italicized, add single asterisks (*) around the phrase. For example:
255
+
256
+
\*'r params$species'* will render as *Petrale sole*.
257
+
:::
244
258
245
259
### References and Bibliography
246
260
@@ -305,6 +319,10 @@ Here are two entries using the examples mentioned above:
305
319
You can edit the glossary by altering, adding, or removing entries in the "report_glossary.tex" file.
306
320
:::
307
321
322
+
::: {.callout-tip}
323
+
Is there an acronym we've missed that should be included in this national glossary? Make an [issue](https://github.com/nmfs-ost/asar?tab=contributing-ov-file#contributing-bugs) or, even better, a [pull request](https://github.com/nmfs-ost/asar?tab=contributing-ov-file#recommended-workflow-fork--submit-a-pull-request) with your suggestion!
324
+
:::
325
+
308
326
#### Using acronyms in reports
309
327
310
328
First, check if the glossary contains your acronym; if it doesn't, you can edit the file and add it yourself.
Copy file name to clipboardExpand all lines: Curriculum/Day_2/day_2.qmd
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -412,9 +412,9 @@ asar::create_template(
412
412
::: {.callout-important}
413
413
The console will return this question:
414
414
415
-
> Do you want to keep the current preamble? (Y/N)
415
+
> Update the preamble to match entered arguments? (Y/N)
416
416
417
-
When you are rerendering your skeleton in a way that edits your preamble (e.g., when you add new model results), your answer should typically be NO (n).
417
+
When you are rerendering your skeleton in a way that edits your preamble (e.g., when you add new model results), your answer should typically be YES (y).
418
418
419
419
Just be aware that these changes will, in fact, change your current preamble and overwrite any edits you made to that file.
0 commit comments