><code><span class="r-in"><span>  <span class="fu">hasFileSuffix</span><span class="op">(</span><span class="st">"bla.txt"</span>, <span class="st">"txt"</span><span class="op">)</span>    <span class="co"># TRUE</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] TRUE</span>
<span class="r-in"><span>  <span class="fu">hasFileSuffix</span><span class="op">(</span><span class="st">"bla.txt"</span>, <span class="st">".txt"</span><span class="op">)</span>   <span class="co"># TRUE