ings-into-nicely-formatted-paragraphs" class="section level2">
<h2><code>str_wrap()</code>: Wrap strings into nicely formatted
paragraphs</h2>
<p><code>strwrap()</code> and <code>str_wrap()</code> use different
algorithms. <code>str_wrap()</code> uses the famous <a href="http://litherum.blogspot.com/2015/07/knuth-plass-line-breaking-algorithm.html">Knuth-Plass
algorithm</a>.</p>
<div class="sourceCode" id="cb24"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb24-1"><a href="#cb24-1" tabinde