Skip to content
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
```