2013年4月30日星期二

Rscript example - using R to executable functions


I use Rscript as my prime scripting language to perform some command-line tasks. The reason for this is I don’t know much about bash scripts nor perl language. Writing a script in R is very simple if you know R language. But there are a few things need to consider.
  • How to pass arguments to the script
  • Which version of Rscript should you use
  • A facility to provide a bash-line help
I did a simple try and here is an example Rscript how it works

没有评论:

发表评论