Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quarto rmd articles #2723

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@
^tools$
^\.lintr.R$
^vignettes/\.quarto$
^vignettes/articles$
5 changes: 5 additions & 0 deletions pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ articles:
contents:
- starts_with("test")

- title: internal
contents:
- articles/test
- articles/test-quarto

reference:
- title: Build

Expand Down
2 changes: 2 additions & 0 deletions vignettes/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
*_files

/.quarto/

!knitr-chunks.R
3 changes: 3 additions & 0 deletions vignettes/articles/knitr-chunks.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# I would like to have those reused inside my articles / vignettes
## ----simple, echo=TRUE-------------------------------
1 + 1
24 changes: 24 additions & 0 deletions vignettes/articles/test-quarto.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: "test"
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

```{r setup}
library(pkgdown)
```

```{r}
knitr::read_chunk("knitr-chunks.R")
```


```{r}
#| label: simple
```

23 changes: 23 additions & 0 deletions vignettes/articles/test.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: "test"
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

```{r setup}
library(pkgdown)
```

```{r}
knitr::read_chunk("knitr-chunks.R")
```

```{r}
#| label: simple
```

Loading