Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Get all sourced functions

$
0
0

In R, I am using source() to load some functions:

source("functions.R")

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

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


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>