Rscript example

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

  • https://github.com/feng-li/flutils/blob/master/bin/embedAllFont


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *