On 7/24/2009 12:25 PM, Mark Knecht wrote:
Hi,
   I have 15 or 20 functions I've written to convert the sort of data
I'm working with. They are currently in their own R file which I load
by hand in Rgui before loading and running my main programs.

   Is there any way to have this file included in my R program like
#include might in C?

source()

   If not is there a simple newbie-type example of how to create a
package so I could just say something like require(MWKFunctions) and
be done with this?

I gave a talk on this at last year's useR; my slides are online at

 http://www.r-project.org/conferences/useR-2008/slides/Murdoch.pdf

The title says it's for Windows, but most of it applies to any platform.

Duncan Murdoch

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to