AW: [R] R commands from a text file ?

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Jul 21 09:16:28 CEST 2003


RINNER Heinrich wrote:

> You can use source():
> 
> For example
> 
>>source("C:\temp\foo.R")

No. source() is the right hint, but you cannot specify the file this 
way! On Unix-like sytems it is as usual, but on Windows either
"C:\\temp\\foo.R" or "C:/temp/foo.R".

Uwe Ligges


> 
> wher "foo.R" is a text fiel containing R commands.
> 
> Regards,
> Heinrich.
> 
> 
>>-----Ursprüngliche Nachricht-----
>>Von: orkun [mailto:temiz at deprem.gov.tr] 
>>Gesendet: Montag, 21. Juli 2003 08:47
>>An: R-help
>>Betreff: [R] R commands from a text file ?
>>
>>
>>Hello
>>
>>I was wondering if it was possible to enter R commands from 
>>an external
>>text file. If it is possible, it will be easy for repetetive tasks.
>>
>>Does anyone have an idea ?
>>
>>thanks in advance
>>
>>
>>Ahmet Temiz
>>   TURKEY
>>
>>
>>______________________________________
>>
>>
>>
>>______________________________________
>>The views and opinions expressed in this e-mail message are 
>>...{{dropped}}
>>
>>______________________________________________
>>R-help at stat.math.ethz.ch mailing list
>>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>>
> 
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list