Description Usage Arguments Value Functions
Common string utilities
1 2 3 4 5 6 7 8 9 | apply_lines(txt, fun)
ensure_trailing_linebreak(txt)
remove_empty_lines(txt)
starts_with_include(txt)
flush_includes_left(txt)
|
txt |
a character vector |
fun |
a function that takes one code line (without line break) as its only argument |
updated character vector
apply_lines
: Apply a function to each line of text
ensure_trailing_linebreak
: Ensure that a character vector ends in a line break
remove_empty_lines
: Remove all empty lines
starts_with_include
: Check if first eight non-whitespace characters
are #include
flush_includes_left
: Justify all #include
directives all the way
to the left
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.