[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-devel
Subject:    Re: [Rd] Rscript Bug Report (improper parsing of [args])
From:       Tomas Kalibera <tomas.kalibera () gmail ! com>
Date:       2017-11-08 12:17:56
Message-ID: 0a184a00-c318-5976-1847-85e6831e26bc () gmail ! com
[Download RAW message or body]

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@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic