File: expand_variables_article_template.R

package info (click to toggle)
r-cran-bslib 0.9.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,412 kB
  • sloc: javascript: 13,349; makefile: 33; sh: 23
file content (16 lines) | stat: -rw-r--r-- 377 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
withr::with_dir(
  rprojroot::find_package_root_file("vignettes"),
  {
    src4 <- knitr::knit_expand(
      file = "_variables-template.Rmd",
      version = 4
    )
    writeLines(src4, "bs4-variables/index.Rmd")

    src5 <- knitr::knit_expand(
      file = "_variables-template.Rmd",
      version = 5
    )
    invisible(writeLines(src5, "bs5-variables/index.Rmd"))
  }
)