has_examples_in_rd: Checks if an R documentation file supplies one or more...

Description Usage Arguments Value Author(s) Examples

View source: R/has_examples_in_rd.R

Description

Checks if an R documentation file supplies one or more examples

Usage

1
has_examples_in_rd(rd_filename)

Arguments

rd_filename

name of an R documentation (.Rd) file. These are located in a package its 'man' folder

Value

TRUE or FALSE

Author(s)

Richel Bilderbeek

Examples

1
2
3
4
  filename <- find_path("f_with_examples.Rd")
  testit::assert(has_examples_in_rd(filename))
  filename <- find_path("f_without_examples.Rd")
  testit::assert(!has_examples_in_rd(filename))

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