[R] Include files?
Duncan Murdoch
murdoch at stats.uwo.ca
Fri Jul 24 19:22:56 CEST 2009
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
More information about the R-help
mailing list