Hi,

I have a bunch of R scripts which have the hash bang !/usr/bin/env Rscript
and I typically run these scripts by passing in some parameters like this:

./nameOfRScript arg1 arg2 ...

I know Rscript has the option to run in --vanilla.  Where exactly do I
insert the --vanilla option?  When I do something like this:

./nameOfRScript --vanilla arg1 arg2 ...

And I try to access the commandArgs, the first argument is --vanilla which
isn't what I want.  I tried to do commandArgs(trailingOnly=TRUE) with

./nameOfRScript --vanilla --args arg1 arg2 ...

But I sitll have the first argument as --vanilla.  Does anyone know how to
get around this?  Thanks,

Fong

	[[alternative HTML version deleted]]

