Description Usage Arguments Value Author(s) Examples
View source: R/has_examples_in_rd.R
Checks if an R documentation file supplies one or more examples
1 | has_examples_in_rd(rd_filename)
|
rd_filename |
name of an R documentation (.Rd) file. These are located in a package its 'man' folder |
TRUE or FALSE
Richel Bilderbeek
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.