Avoid new lines in sprintf output. Function helps to avoid line lenght limits without affecting sprintf output
Source:R/linter.R
avoid_new_lines.Rd
Avoid new lines in sprintf output. Function helps to avoid line lenght limits without affecting sprintf output
Examples
sprintf(avoid_new_lines(
"Lorem ipsum dolor sit amet, %s adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam."
), "consectetur")
#> [1] "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam."