build_readme | R Documentation |
README.Rmd
A simpler, but considerably faster alternative to devtools::build_readme()
since it doesn't install your package in a temporary library before building the
README.Rmd
. This has the pleasant side effect that, other than the latter function, it also works for .Rmd
files which aren't part of an R package.
build_readme(
input = "README.Rmd",
output = "README.md",
build_index_md = NULL,
env = parent.frame(),
clean = TRUE,
quiet = FALSE
)
input |
Path to the R Markdown README file to be built. A character scalar. |
output |
Path to the built Markdown README. A character scalar. |
build_index_md |
Whether to build a separate pkgdown-optimized |
env |
Environment in which code chunks are to be evaluated, e.g. |
clean |
Whether or not to delete intermediate files created by |
quiet |
Whether or not to suppress printing status output from internal processing. |
Note that for public package repositories, it's recommended to use devtools::build_readme()
since it ensures the README.Rmd
can be built reproducibly,
which means all the objects and files it references must be accessible from the repository.
This function is registered as an RStudio add-in, allowing RStudio users to assign a custom shortcut to it and to invoke it from the command palette.
The path to input
as a character scalar, invisibly.
Other R Markdown and knitr functions:
knitr_table_format()
,
strip_yaml_header()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.