rd_tags: Copy of tools::RdTags. Because tools::RdTags is not an...

Description Usage Arguments Value Author(s) Examples

View source: R/rd_tags.R

Description

Copy of tools::RdTags. Because tools::RdTags is not an exported function, I duplicated its code.

Usage

1
rd_tags(rd)

Arguments

rd

a parsed .Rd file, as produced by tools::parse_Rd

Value

the tags in the parsed .Rd file

Author(s)

Richel Bilderbeek

Examples

1
2
3
4
5
  rd_filename <- find_path("f_with_examples.Rd")
  doc <- tools::parse_Rd(rd_filename)
  testit::assert(class(doc) == "Rd")
  tags <- rd_tags(doc)
  testit::assert("\\examples" %in% tags)

richelbilderbeek/goodpracticeeighteen documentation built on May 27, 2019, 7:59 a.m.