e/man/set_pwa.html">set_pwa()</a></code> function, which does all the previously mentioned steps in only one line of code. There are, however, a few prerequisites:</p>
<ul>
<li>The app must <strong>belong to a package</strong>. However, if you followed the previous chapter, this is already the case.</li>
<li>The function must target the app directory.</li>
</ul>
<p>Let’s create a <code>inst/examples/pwa-app</code> sub-folder and the <code>app.R</code> file:</p>
<div class="sourceCode" id="cb917"><pre clas