Skip to content

Commit

Permalink
Minor fix to template r x
Browse files Browse the repository at this point in the history
  • Loading branch information
sda030 committed Nov 24, 2024
1 parent c73000f commit 75567b3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,13 @@ if(!all(sapply(plots, is.null))) {{
lapply(names(plots), function(.x) {{
knitr::knit_child(text = c(
'##### `r .x',
'##### `r .x`',
'',
'',

Check warning on line 264 in R/zzz.R

View check run for this annotation

Codecov / codecov/patch

R/zzz.R#L262-L264

Added lines #L262 - L264 were not covered by tests
'```{{r}}',
'library(saros)',
'knitr::opts_template$set(fig = list(fig.height = fig_height_h_barchart2(plots[[.x]])))',
'',

Check warning on line 268 in R/zzz.R

View check run for this annotation

Codecov / codecov/patch

R/zzz.R#L268

Added line #L268 was not covered by tests
'```',
'',
'```{{r, opts.label=\\'fig\\'}}',
Expand All @@ -275,8 +278,7 @@ if(!all(sapply(plots, is.null))) {{
'girafe(ggobj = plots[[.x]])',
'```',
'',
'`r x`',
''
'`r x`'

Check warning on line 281 in R/zzz.R

View check run for this annotation

Codecov / codecov/patch

R/zzz.R#L281

Added line #L281 was not covered by tests
), envir = environment(), quiet = TRUE)
}}) |> unlist() |> cat(sep = '\\n')
}}
Expand Down

0 comments on commit 75567b3

Please sign in to comment.