You can always write: Rscript --vanilla your_r_script.r
(and #!/usr/bin/env Rscript --vanilla )
Command line arguments are available as:
args <- commandArgs(trailingOnly=TRUE)
And there are three getopt()-like packages: getopt, optparse, and argparse.