[R] Open user's R function
Lisa
lisajca at gmail.com
Thu Dec 10 23:52:12 CET 2009
It works. Thank you for your help.
Lisa
David Winsemius wrote:
>
>
> On Dec 10, 2009, at 5:19 PM, Lisa wrote:
>
>>
>> Dear all,
>>
>> How can I open my own function in the R console window? For example,
>> I have
>> a function called my.function.r saved at the following directory
>>
>>
>>
>
> Try:
>
> source(file="E:/My documents/R files/my.function.r")
>
> Note that I changed the backslashes to forward slashes. R grew up on
> Unix machines and the backslash is used as an escape character. You
> could, of course, escape the backslashes, but I can never remember
> whether you need two or three backslashes in a row to get the desired
> effect.
>
>
>> Now I want to input a command in the R console window to open
>> my.function.r.
>> How can I do it? Thank you in advance.
> --
> David Winsemius, MD
> Heritage Laboratories
> West Hartford, CT
>
> ______________________________________________
> 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.
>
>
--
View this message in context: http://n4.nabble.com/Open-user-s-R-function-tp960606p960638.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list