Skip to content

Commit

Permalink
revert to png for images; svg increases file size and there are issue…
Browse files Browse the repository at this point in the history
…s with data URIs and svgz not rendering, plus GitHub doesn't serve svgz file correctly and compresses them again so browser only undoes one level of compression
  • Loading branch information
gavinsimpson committed Apr 1, 2024
1 parent e8e1f20 commit cec308a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
5 changes: 2 additions & 3 deletions vignettes/custom-plotting.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ output:
rmarkdown::html_vignette:
fig_width: 8
fig_height: 5.3333
dev: "svglite"
dev: "png"
vignette: >
%\VignetteIndexEntry{Customizing plots}
%\VignetteEngine{knitr::rmarkdown}
Expand All @@ -14,8 +14,7 @@ vignette: >
```{r setup-knitr, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.ext = "svg"
comment = "#>"
)
```

Expand Down
5 changes: 2 additions & 3 deletions vignettes/data-slices.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ output:
rmarkdown::html_vignette:
fig_width: 8
fig_height: 5.3333
dev: "svglite"
dev: "png"
vignette: >
%\VignetteIndexEntry{Data slices}
%\VignetteEngine{knitr::rmarkdown}
Expand All @@ -14,8 +14,7 @@ vignette: >
```{r setup-knitr, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.ext = "svg"
comment = "#>"
)
```

Expand Down
5 changes: 2 additions & 3 deletions vignettes/gratia.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ output:
rmarkdown::html_vignette:
fig_width: 8
fig_height: 5.3333
dev: "svglite"
dev: "png"
vignette: >
%\VignetteIndexEntry{Getting Started}
%\VignetteEngine{knitr::rmarkdown}
Expand All @@ -14,8 +14,7 @@ vignette: >
```{r setup-knitr, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.ext = "svg"
comment = "#>"
)
```

Expand Down
5 changes: 2 additions & 3 deletions vignettes/posterior-simulation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ output:
rmarkdown::html_vignette:
fig_width: 8
fig_height: 5.3333
dev: "svglite"
dev: "png"
vignette: >
%\VignetteIndexEntry{Posterior Simulation}
%\VignetteEngine{knitr::rmarkdown}
Expand All @@ -16,8 +16,7 @@ vignette: >
```{r setup-knitr, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.ext = "svg"
comment = "#>"
)
```

Expand Down

0 comments on commit cec308a

Please sign in to comment.