Description Usage Arguments Value Examples
THis function mimics some of the nice thing glue does with trimming. The option to keep internal blanks was added for puzzle 2020:04.
1 | read_text_lines(x, drop_empty = "all")
|
x |
a string with values separated by newlines |
drop_empty |
whether to remove empty items ( |
a character vector of values split at newlines and with leading and trailing spaces removed.
1 2 3 4 5 | read_text_lines("a\n b \nc ")
read_text_lines("\n\na\n b \n\nc \n\n", drop_empty = "none")
read_text_lines("\n\na\n b \n\nc \n\n", drop_empty = "all")
read_text_lines("\n\na\n b \n\nc \n\n", drop_empty = "head/tail")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.