Skip to content

Commit

Permalink
Merge pull request #127 from NIFU-NO/dev
Browse files Browse the repository at this point in the history
Minor fix to template `r  x`
  • Loading branch information
sda030 authored Nov 24, 2024
2 parents 4aa26f7 + 75567b3 commit 19b81e1
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`',
'',
'',
'```{{r}}',
'library(saros)',
'knitr::opts_template$set(fig = list(fig.height = fig_height_h_barchart2(plots[[.x]])))',
'',
'```',
'',
'```{{r, opts.label=\\'fig\\'}}',
Expand All @@ -275,8 +278,7 @@ if(!all(sapply(plots, is.null))) {{
'girafe(ggobj = plots[[.x]])',
'```',
'',
'`r x`',
''
'`r x`'
), envir = environment(), quiet = TRUE)
}}) |> unlist() |> cat(sep = '\\n')
}}
Expand Down

0 comments on commit 19b81e1

Please sign in to comment.