s="st"> </span><span class="dv">1</span></a>
<a class="sourceLine" id="cb4-18" data-line-number="18"></a>
<a class="sourceLine" id="cb4-19" data-line-number="19"><span class="cf">for</span> (i <span class="cf">in</span> <span class="kw"><a href="https://www.rdocumentation.org/packages/base/topics/list.files">dir</a></span>(path_to_img_dir)){</a>
<a class="sourceLine" id="cb4-20" data-line-number="20">    </a>
<a class="sourceLine" id="cb4-21" data-line-number="21">    <span class="co"># Assuming only 1 dot 