Is there a straightforward way to turn the functions of a .RData file into a normal code file (.R)?
This recent blog post addresses a basically the same problem:
http://www.r-statistics.com/2010/09/dumping-functions-from-the-global-environment-into-an-r-script-file/