Skip to content

Commit

Permalink
Add alt text to vignette (#2546)
Browse files Browse the repository at this point in the history
Co-authored-by: Hadley Wickham <[email protected]>
  • Loading branch information
jayhesselberth and hadley authored May 16, 2024
1 parent cf719ba commit f42932a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions vignettes/test/rendering.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ author: "Author is skipped from the TOC"
date: "Date is skipped from the TOC"
---

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

Expand All @@ -20,6 +21,7 @@ Yay[^footnote]
## Figures

```{r}
#| fig.alt: Test plot
plot(1:10)
```

Expand All @@ -30,7 +32,7 @@ x <- readLines("test.txt")
x
```

![](bacon.jpg)
![bacon](bacon.jpg)

## Details tag

Expand Down Expand Up @@ -122,7 +124,8 @@ warning(cli::style_bold("This is bold"))
```
Some text

```{r, error = TRUE}
```{r}
#| error: TRUE
stop(cli::style_italic("This is italic"))
```

Expand Down Expand Up @@ -170,6 +173,7 @@ blop
something nice

```{r}
#| fig.alt: Another test plot
plot(1:42)
```

Expand Down

0 comments on commit f42932a

Please sign in to comment.