R/utils-string.R
count_lines.Rd
Count the number of lines in a string
count_lines(string)
A string
output Integer supplying the number of lines in a string
count_lines("foo\nbar") #> [1] 2