View source: R/construct_signature.R
construct_signature | R Documentation |
Construct a function's signature such as the one you can see right below in the 'Usage' section.
construct_signature(x, name = NULL, one_liner = FALSE, style = TRUE)
x |
A function |
name |
The name of the function, by default we use the symbol provided to |
one_liner |
Boolean. Whether to collapse multi-line expressions on a single line using semicolons. |
style |
Boolean. Whether to give a class "constructive_code" on the output for pretty printing. |
a string or a character vector, with a class "constructive_code" for pretty
printing if style
is TRUE
construct_signature(lm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.