On 20 September 2014 at 19:55, Harris A. Jaffee wrote: | Terrific, and I appreciate your thoughts and encouragement. | | So, getting back on-list, I propose a backward-incompatible change, with | or without --verbose, that the --args be included in the 'av' array, and | passed to R, only if there are user arguments to follow it. The condition | for a first argument, at the time --args is currently included, is | | (i0+1) < argc | | Scott's fix, already in the devel version, solves my original complaint and | should continue to do so, as long as av[ac] continues to be the terminating | NULL. That is, av[ac-1] is the last argument in the R command.
In case you were unaware of it, r from littler (which has been around even longer than Rscript) has always propagated its arguments into argv: edd@max:~$ r -e'print(argv)' foo bar biz x=42 [1] "foo" "bar" "biz" "x=42" edd@max:~$ See http://dirk.eddelbuettel.com/code/littler.html and my blog pages on littler at http://dirk.eddelbuettel.com/blog/code/littler/ for more about 'r' and littler; pre-built binaries exist at CRAN for Debian and Ubuntu; and it builds easily on a lot of other OSs. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel