spot_tags {funspotr} | R Documentation |
Spot Tags
Description
Put quoted inline R function in your blogdown or quarto post's YAML header to
have the packages be the packages used in your post (wrapper around
funspotr::spot_pkgs()
).
Usage
spot_tags(
file_path = knitr::current_input(),
used = FALSE,
drop_knitr = FALSE,
yaml_bullet = NULL,
...
)
Arguments
file_path |
Default is the file being knitted but can change to some other file (e.g. in cases where the code for the post may reside in a different file). |
used |
Default is |
drop_knitr |
Many blogdown posts have |
yaml_bullet |
Default is If it's first occurrence happens on a line that contains a bracket
the value becomes See examples for how to hard-code. |
... |
Any additional arguments to pass to |
Details
tags: - "`r funspotr::spot_tags()`"
OR
tags: ["`r funspotr::spot_tags()`"]
OR
categories: ["`r funspotr::spot_tags()`"]
Thanks Yihui for the suggestions and for getting this working blogdown#647, blogdown#693.)
Value
Character vector in a format meant to be read while evaluating the YAML header when rendering.
See Also
Examples
# To review input interactively from within rstudio you might also try:
## Not run:
funspotr::spot_tags(rstudioapi::getSourceEditorContext()$path)
## End(Not run)