[R] Getting the source file's name where the custom function is written

raymondowf raymondowf at gmail.com
Wed Mar 9 10:19:43 CET 2011


Dear R experts,
 I've written some functions in a few source files (such as main.R,
control.R ...).
 After loading them into R, how do I retrieve which functions are loaded
from which source file?

 For example:
 main.R has functions:   myPrint(), myScan()
 control.R has functions: setPrinter(), setData()

 After loading the sources (main.R and control.R) into R, I would want to
know that myPrint() and myScan are from main.R while the rest from control.R

Many thanks!!!

--
View this message in context: http://r.789695.n4.nabble.com/Getting-the-source-file-s-name-where-the-custom-function-is-written-tp3343135p3343135.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list