From 9185ca5c7cb356282c0e18f6b24fe49b8cba665f Mon Sep 17 00:00:00 2001 From: Christophe Dervieux Date: Fri, 20 Oct 2023 22:32:14 +0200 Subject: [PATCH] Adapt example for new options handling (#90) https://github.com/yihui/knitr/pull/2300 --- 094-purl-qmd.R | 6 ++++-- 094-purl.R | 2 +- 094-purl.Rmd | 2 +- 094-purl.qmd | 6 ++++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/094-purl-qmd.R b/094-purl-qmd.R index 583fcb8..246d61c 100644 --- a/094-purl-qmd.R +++ b/094-purl-qmd.R @@ -7,8 +7,10 @@ strsplit('hello world', ' ') ## ------------------------------------------------------------------------ #| label: test-b -#| fig.width: 10.0 -#| fig.height: 7.0 +#| fig-width: 10 +#| fig-height: 7 +#| fig-format: svg +#| fig-dpi: 120 if (FALSE) plot(1:10) diff --git a/094-purl.R b/094-purl.R index 2013f30..b8b86bf 100644 --- a/094-purl.R +++ b/094-purl.R @@ -3,7 +3,7 @@ strsplit('hello world', ' ') -## ----test-b, fig.width=10, fig.height=7---------------------------------- +## ----test-b, fig.width=10, fig.height=7, dev='svg', dpi = 120------------ if (FALSE) plot(1:10) diff --git a/094-purl.Rmd b/094-purl.Rmd index a3d97e8..74ec77a 100644 --- a/094-purl.Rmd +++ b/094-purl.Rmd @@ -9,7 +9,7 @@ strsplit('hello world', ' ') A second chunk. -```{r test-b, fig.width=10, fig.height=7} +```{r test-b, fig.width=10, fig.height=7, dev='svg', dpi = 120} if (FALSE) plot(1:10) ``` diff --git a/094-purl.qmd b/094-purl.qmd index 66a2595..754baec 100644 --- a/094-purl.qmd +++ b/094-purl.qmd @@ -13,8 +13,10 @@ A second chunk. ```{r} #| label: test-b -#| fig.width: 10.0 -#| fig.height: 7.0 +#| fig-width: 10 +#| fig-height: 7 +#| fig-format: svg +#| fig-dpi: 120 if (FALSE) plot(1:10) ```