Find or remove empty sections in Rd objects
Rdo_empty_sections.Rd
Find or remove empty sections in Rd objects
Value
For Rdo_empty_sections
, the names of the empty sections as a
character vector.
For Rdo_drop_empty
, the Rd object stripped from empty
sections.
Examples
dummyfun <- function(x) x
rdo8 <- list_Rd(name = "Dummyname", alias = "dummyfun",
title = "Dummy title", description = "Dummy description",
usage = "dummyfun(x,y)",
value = "numeric vector",
author = "",
details = "",
note = "",
Rd_class=TRUE )
Rdo_empty_sections(rdo8) # "details" "note" "author"
#> [1] "details" "note" "author"
rdo8a <- Rdo_drop_empty(rdo8)
Rdo_empty_sections(rdo8a) # character(0)
#> character(0)