Skip to content

Commit

Permalink
Add some more Quarto refs
Browse files Browse the repository at this point in the history
  • Loading branch information
remlapmot committed Jul 24, 2024
1 parent 4c24a48 commit 1871c4e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions site/examples/rmarkdown-call-stata-example/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ install.packages(
install.packages("foreign")
```

## Example R Markdown document
## Example R Markdown or Quarto document

Save the following code chunk as an _.Rmd_ or _.qmd_ file.

````{verbatim, lang='markdown'}
---
Expand Down Expand Up @@ -150,10 +152,16 @@ mrmodal beta_outcome se_outcome beta_exposure se_exposure, weighted
And we could continue with additional Stata code (or indeed R code) as we like.
````

To run this R Markdown file, either; open it in RStudio and click the `Knit` button in the toolbar of the Source code window, or run
To render your R Markdown file, either; open it in RStudio and click the `Knit` button in the toolbar of the Source code window, or run

```r
rmarkdown::render('rmarkdown-call-stata-example.Rmd')
rmarkdown::render('myanalysis.Rmd')
```

or to render a Quarto file run the following in your Terminal

```sh
quarto render myanalysis.qmd
```

## References
Expand Down

0 comments on commit 1871c4e

Please sign in to comment.