ode R"><span class="co">#  --------------- Cargar paquete Karel --------------------</span>
<span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="https://mpru.github.io/karel/">karel</a></span><span class="op">)</span>

<span class="co"># ------------ Definición de funciones auxiliares-----------</span>

<span class="va">girar_derecha</span> <span class="op">&lt;-</span> <span class="kw">function</span><span