
Wrap Long Titles with Capital Letter Prioritization (when no symbols are nearby)
Source:R/wrap_title.R
wrap_title.Rd
This function wraps long titles into multiple lines to fit a specified width, prioritizing breaks at symbols like underscores, hyphens, and colons when they are close to the wrap point. If no special symbol is found nearby, the function will break the title at the first capital letter. If neither is found, the title is broken at the specified width.