[R] how to load functions from file

David Winsemius dwinsemius at comcast.net
Thu Apr 5 01:00:02 CEST 2012


On Apr 4, 2012, at 6:10 PM, Sarah Goslee wrote:

> I just tried it, because I'm curious that way.
>
> If I search for
> "load functions into R"
> I get only this thread.
>
> If I search for
> load functions into R
> (no quotes), I get the referenced discussion from Henrik Bengtsson:
> ttps://stat.ethz.ch/pipermail/r-help/2008-September/173606.html
>
> As in so many areas of dealing with R, details matter.

I sometime check how many hops using links in the help system that it  
takes to get from a not-quite-right-term to the "right" help page.  
Usually it's a pretty small number. In this case the links from the  
<load> page are <save> -> <dump> (where source is discussed and not  
just linked at the bottom) -> <source>. So arguably the number of hops  
needed are only two but at most three. (And obviously I'm not counting  
the <dput> link or the other ones higher up the page. So I do  
understand that I may be asking people to read 9 or 10 pages before  
they post a question. That seems an acceptable effort.)

The help system is not advertised as the preferred method of learning  
R, but it was the method I "grew up with".

-- 
David.

>
> Sarah
>
> On Wed, Apr 4, 2012 at 6:05 PM, Rolf Turner <rolf.turner at xtra.co.nz>  
> wrote:
>> On 04/04/12 22:32, Bert Gunter wrote:
>>>
>>> Rolf:
>>>
>>> Google on "load functions into R."
>>> A post referencing source() (from Henrik Bengtsson is the first hit.
>>>
>>
>> Tried that just now.  The only hits I got were to *your* post; no  
>> hits
>> on any post from Henrik Bengtsson.
>>
>> These things are never as easy and straightforward as the cognoscenti
>> would have you believe.
>>
>>    cheers,
>>
>>        Rolf
>>
>
>
> -- 
> Sarah Goslee
> http://www.functionaldiversity.org
>
> ______________________________________________
> R-help at 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list