Re: [R] what is best for scripting?

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Sat 03 Dec 2005 - 00:40:59 EST

I do nearly all my scripting in R if its part of an R project. That keeps things simple since everything is in one language. See ?BATCH, ?commandArgs, ?readLines, ?system, ?grep, ?regex (and commands pointed to by it). If your script deals with XML, see the R XML package.

If R is not involved I may use R anyways for scripting since its powerful and I already use it for other tasks but if I don't use R then I will use awk/gawk because its simple and fast.

If its important to eliminate all external dependencies I will use Windows batch (or jscript/javascript) as in
  http://cran.r-project.org/contrib/extra/batchfiles/

I don't find I rarely need anything beyond that. I used to use perl in my pre-R days but since using R don't find I need it any more. I have played with python and it looks very nice but for most R problems its probably also unnecessary.

On 12/2/05, Molins, Jordi <Jordi.Molins@drkw.com> wrote:
>
> I am using R in Windows. I see that I will have to use batch processes with
> R. I will have to read and write text files, and run some R code; probably
> some external code too. I have never done scripting. Is there any document
> that explains simple steps with examples? I also have heard that Python is a
> good scripting language. Is it worth the effort? (I do not have too much
> free time, so if I could do without, much better ...).
>
> Has anybody strong opinions on that? Past experiences?
>
> Thank you!
>
> Jordi
>
>
>
> --------------------------------------------------------------------------------
> The information contained herein is confidential and is inte...{{dropped}}
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Dec 03 00:46:09 2005

This archive was generated by hypermail 2.1.8 : Sat 03 Dec 2005 - 02:28:09 EST