Prints the start and end values for a character vector. The number of values printed depend on the width of the screen by default.
limited_print(chars, prefix = "", max_chars = getOption("width") - nchar(prefix) - 5, type = "message")
(character) What to print.
character
(character of length 1) What to print before chars, on the same line.
chars
(numeric of length 1) The maximum number of characters to print.
numeric
("error", "warning", "message", "cat", "print", `"silent"``)
"error"
"warning"
"message"
"cat"
"print"
NULL
# NOT RUN { taxa:::limited_print(1:100) taxa:::limited_print(1:10000) taxa:::limited_print(1:10000, prefix = "stuff:") # }
Run the code above in your browser using DataCamp Workspace