Description Usage Arguments Value Examples
Transform a Vector to Code
1 | vec_to_code(vec, width = 100, indent = 2, tol = 5)
|
vec |
The vector to transform (atomic vector). |
width |
The approximate desired line width (integer scalar). |
indent |
The number of spaces to use as an indent (integer scalar). |
tol |
The tolerance for going above thw width (integer scalar). |
A character scalar of the vector transformed to code.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.