[1] 2
Activity 1 due at the end of next week
Instructions are available at the top of the activity
For graduate students: identify 5 papers that are important to your dissertation, whose results you think it would be important to reproduce
For undergraduate students: select five potential datasets that you might want to explore from the lterdatasampler package and for each, answer the following:
Quarto files are designed to be used in three ways:
For communicating to decision-makers, who want to focus on the conclusions, not the code behind the analysis.
For collaborating with other data scientists (including future you!), who are interested in both your conclusions, and how you reached them (i.e. the code).
As an environment in which to do data science, as a modern-day lab notebook where you can capture not only what you did, but also what you were thinking.
— R for Data Science, Ch. 28
qmd fileLines 1–5: “YAML” header - this is the space to add information about your file (title, author, date, additional details).
---)key: value formatLines 7–15: R code chunk
```{r} {code} ```)Lines 16–20: Text in Markdown
* around a word to italicize: *quarto* becomes quartoqmd filesYAML header of the file*text in italics* \(\to\) text in italics
**text in bold** \(\to\) text in bold
***text in bold-italic*** \(\to\) text in bold-italic
[underlined text]{.underline} \(\to\) underlined text
[text in small caps]{.smallcaps} \(\to\) text in small caps
text with ^superscript^ or ~subscript~ \(\to\)
text with superscript or subscript
$\frac{dN}{dt} = rN$ \(\to\) \(\frac{dN}{dt} = rN\)
Community ecology is a mess [@lawton_1999] \(\to\) Community ecology is a mess (Lawton 1999)
You can also add footnotes^[like this] \(\to\) You can also add footnotes1
 \(\to\)
# Header 1
## Header 2
### Header 3
See https://quarto.org/docs/authoring/markdown-basics.html for a comprehensive guide to markdown options
R Code in qmd documents, we need to insert code “chunks”The keyboard shortcut Cmd + Option + I / Ctrl + Alt + I.
The “Insert” button icon in the editor toolbar.
By manually typing the chunk delimiters
```{r} and ```.
As seen in @lst-simple-addition, 1+1=2 \(\to\) As seen in Listing 1, 1+1=2
R chunks can be shown but not run (“evaluated”)R code chunks can control the appearance of the outputR code chunks can control the appearance of the outputR code chunks can control the appearance of the outputcars dataset in R
As shown in @fig-plot-dist, speed and dist are positively correlated \(\to\)
As shown in ?@fig-third-figure, speed and dist are positively correlated
Quarto as a “swiss army knife” for scientific writing
When preparing a manuscript for journal submission, there’s several moving pieces to manage:
Quarto can help with all!
Go into your rstudio project yourname-class-notes
Run git pull, either in the terminal or in the top-right Git pane (blue arrow downwards)
You should now have a file _demo-quarto.qmd in your working directory.
To run the next few steps, you may need to run install.packages('tinytex') and install.packages('rmarkdown') if you didn’t already do this in Week 1.
_demo-quarto.qmd