View source: R/write-doc-audit.R
write_doc_factory_map_conventions | R Documentation |
write_doc_factory_map_conventions()
creates a roxygen2 block
section to be inserted into the documentation of a function factory such as
function_map_seq()
or function_map_total_n()
. It lays out the
naming guidelines that users of your function factory should follow when
creating new manufactured functions.
Copy the output from your console and paste it into the roxygen2 block of your function factory.
write_doc_factory_map_conventions(
ending,
name_test1 = "GRIM",
name_test2 = "GRIMMER",
scrutiny_prefix = FALSE
)
ending |
String (length 1). The part of your function factory's name
after |
name_test1 , name_test2 |
Strings (length 1 each). Plain-text names of
example consistency tests. Defaults are |
scrutiny_prefix |
Logical (length 1). Should the scrutiny functions
mentioned in the output have a |
A string vector formatted by glue::glue()
.
For context, see Implementing consistency tests.
# For `function_map_seq()`:
write_doc_factory_map_conventions(ending = "seq")
# For `function_map_total_n()`:
write_doc_factory_map_conventions(ending = "total_n")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.