View source: R/scrape_section.R
vt_scrape_section | R Documentation |
Looks for the value in a custom roxygen sections. Custom
sections are named using @section <NAME>:
, where colon is use to indicate
end of the name, and value starts on next line.
vt_scrape_section(tag, block)
tag |
name of the section, case insensitive. |
block |
character vector that holds the documentation block. |
section value
Marie Vendettuoli
2021-02-18
roxy_block1 <- c("@title Title1", "@param param1 definition",
"@section Last updated date:", "2021-01-01", "@importFrom utils sessionInfo",
"@export" )
vt_scrape_section("Last updated date:", roxy_block1)
roxy_block2 <- paste0("#' ", roxy_block1)
vt_scrape_section("Last updated date:", roxy_block2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.