microsoft / RTVS

R Tools for Visual Studio.
MIT License
390 stars 111 forks source link

--quiet argument seems to be ignored by R Host when using MRO #1676

Open Hlynsson opened 8 years ago

Hlynsson commented 8 years ago

I'm using MRO 3.2.3 and set the command line arguments to inlcude --quiet but it seems to be ignored when the host is started.

Additional information:

OS Information Version: Microsoft Windows NT 10.0.10586.0

RTVS Information: Assembly: Microsoft.VisualStudio.R.Package, Version=0.3.20418.1523, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

R Install path: C:\Program Files\Microsoft\MRO\R-3.2.3

MikhailArkhipov commented 8 years ago

Can you please provide more information when this is important. Thanks.

Hlynsson commented 8 years ago

Not essential but used to suppress startup messages in the interactive session, e.g: "C:\Program Files\Microsoft\MRO\R-3.2.3\bin\x64\Rgui.exe" --quiet Will launch the gui without the startup messages, same with R and RTerm. But defining this seems to not pass that to the host before starting it: image

Maybe I defined something wrong?

CLI example: image

int19h commented 8 years ago

No, it's a bug on our side - specifically, in our host. We call R_set_command_line_arguments which does propagate command line arguments to R, but then we never call R_common_command_line, which is where R actually parses them and sets options accordingly.

int19h commented 8 years ago

(so commandArgs work properly in R code and can be parsed by R scripts as usual, but all options affecting R behavior, like --quiet, are not applied.)

Hlynsson commented 8 years ago

Understood, could see people using things like --vanilla and --internet2 as well depending on environment conditions.