Get all sourced functions : <p>In R, I am using <code>source()</code> to load some functions:</p>

<pre><code>source("functions.R")
</code></pre>

<p>Is it possible to get the list of all functions defined in this file? As function names. (Maybe <code>source()</code> itself can somehow return it?). </p>

<p>PS: The last resort would be to call <code>source()</code> second time like <code>local({ source(); })</code> and then do <code>ls()</code> inside and filter functions, but that's too complicated - is there easier and less clumsy solution?</p>
