roxygen_text_to_doc | R Documentation |
Take roxygen comment + function copied to clipboard and produces draft docopt file contents. Add the following terms somewhere in your parameter descriptions to indicate their type:
roxygen_text_to_doc(roxygen_string = clipr::read_clip())
roxygen_string |
roxygen comments + described function (character). By default reads from clipboard. |
(flags) if boolean instead of arg (required) if argument/flag is not optional. eventually we want to automatically infer this from function definition
returns the content for a docopt file (string). But usually run for its side effect (cat of docopt string)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.