[R] Include files?

Mark Knecht markknecht at gmail.com
Fri Jul 24 21:03:38 CEST 2009


On Fri, Jul 24, 2009 at 10:22 AM, Duncan Murdoch<murdoch at stats.uwo.ca> wrote:
> 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
>

Thank you Duncan. There is some really great stuff in this document.
Answers to a couple of questions I had on my mind and answers to more
questions I really hadn't thought about yet. I appreciate it. Good
stuff to study and play with over the weekend.

Cheers,
Mark




More information about the R-help mailing list