tools/dynamic-help.R

cat(
  sep = "\n",
  paste0("\\renewcommand{\\eval}{\\Sexpr[stage=render,results=rd]{", Sys.getenv("R_PACKAGE_NAME"), ":::#1}}"),
  paste0("\\renewcommand{\\evalatinstall}{\\Sexpr[stage=install,results=rd]{", Sys.getenv("R_PACKAGE_NAME"), ":::#1}}"),
  # The 'top' variants do not work in R < 4.0.0, because a top-level \Sexpr
  # is not allowed, even if it is put in by an Rd macro. Once we do not
  # support R 3.6.x, we can use the 'top' variants.
  # See also the comments in the include_docs() function.
  paste0("\\renewcommand{\\evaltop}{\\Sexpr[stage=render,results=rd]{", Sys.getenv("R_PACKAGE_NAME"), ":::#1}}"),
  paste0("\\renewcommand{\\evalatinstalltop}{\\Sexpr[stage=install,results=rd]{", Sys.getenv("R_PACKAGE_NAME"), ":::#1}}"),
  file = "man/macros/eval2.Rd"
)

Try the pkgdepends package in your browser

Any scripts or data that you put into this service are public.

pkgdepends documentation built on May 29, 2024, 1:56 a.m.