From tomas.kalibera at gmail.com  Wed Nov  8 13:17:56 2017
From: tomas.kalibera at gmail.com (Tomas Kalibera)
Date: Wed, 8 Nov 2017 13:17:56 +0100
Subject: [Rd] Rscript Bug Report (improper parsing of [args])
In-Reply-To: <CAMigB8HscaN4sNHagnBZRF-ZMPCvEDZqM2tDX_6HywF3wr-P1w@mail.gmail.com>
References: <CAMigB8HscaN4sNHagnBZRF-ZMPCvEDZqM2tDX_6HywF3wr-P1w@mail.gmail.com>
Message-ID: <0a184a00-c318-5976-1847-85e6831e26bc@gmail.com>

Thanks for the report, fixed in R-devel.
Tomas

On 10/20/2017 08:09 PM, Trevor Davis wrote:
> Hi,
>
> A user of my `optparse` package discovered a bug in Rscript's parsing of
> [args]. (https://github.com/trevorld/optparse/issues/24)
>
> I've reproduced the bug on my machine including compiling and checking the
> development version of R.  I couldn't find a mention of it in the Bug
> Tracker or New Features.
>
> Can be minimally reproduced on the UNIX command line with following
> commands:
>
>      bash$ touch test.R
>      bash$ Rscript test.R -g 5
>
>      WARNING: unknown gui '5', using X11
>
> This is a bug because according to the documentation in ?Rscript besides
> `-e` the only [options] Rscript should attempt to parse should
>
> 1) Come before the file i.e. `Rscript -g X11 test.R` and not `Rscript
> test.R -g X11`
> 2) Begin with two dashes and not one i.e. `--` and not `-' i.e. `Rscript
> --gui=X11 test.R` and not `Rscript -g X11 test.R` (although I'm not sure if
> the command-line Rscript even needs to be supporting the gui option).
>
> Thanks,
>
> Trevor
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] Rscript Bug Report (improper parsing of [args])
Tomas Kalibera