Description Usage Arguments Value Functions R Trivia Examples
There are many formatting or pretty printing functions available,
some of them quite elaborate. Mine uses only functions in base.
It seems that many programmers don't realize the power of strwrap
and the sep parameter for cat.
An indented, wrapped list styled after a definition.
1 2 3 |
x |
the R object to display. |
label |
a string to describe the list. The remaining lines are
indented by the number of characters from catcatenating |
indent_string |
the string to prefix the first line. Defaults to
|
a formatted string
flp: formatted string variant
Turns out the tab.width option is not set by default in base R as
I discovered when I tried to build the package. Now explicitly test to see if the
option is set.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.