-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ark: Move away from R startup pass through of --
towards explicit CLI arguments that we support
#5001
Comments
clap-rs/clap#3513 has an example of argument namespacing like we'd want here. something like
Do we prefer underscore or dashes? |
The main argument I didn't see explicitly called out above (it's in the list, of course) that I think features prominently in R lore is |
I personally prefer the dashes. I can't think of any other tools which use |
Oh you know what, the jupyter spec says we just need this So I think we can fully standardize on an underscore everywhere. Agree that |
There isn't, but people have repeatedly asked for it, which is why I added the passthrough to Ark originally. Some Workbench customers have asked for the ability to set e.g. Totally fine with removing the ability to set any command line arg you want, but some people do want to control allocation behavior so I'd suggest adding the max/min flags. |
Right now, ark has an argument "pass through" method of
--
that passes on any command line arguments to RIn Positron we set a few, like
--interactive
and--quiet
and--no-restore-data
, but the user has a chance to set some too:This is actually absolutely not working as intended right now. On Windows, we aren't even passing these arguments through to R's cmdlinearg utility
https://github.com/posit-dev/ark/blob/d6ab389bb828db56850948f10b27e3161285be47/crates/ark/src/sys/windows/interface.rs#L55-L56
But here's the thing, I don't think we should. In RStudio, there is no option to just pass whatever flags you want through to R. RStudio exposes a UI to set blessed options, and then it does whatever internal magic is needed to mimic things like
--no-init-file
(which would be to setpRP->LoadInitFile = loadInitFile ? TRUE : FALSE
, not to pass--no-init-file
through to R directly).This is a good thing because it would put ark in control over the limited set of blessed options you can tweak while starting R. For example, we'd never want anyone to pass
-e
to run a single expression and then exit.Here is the set of ark options
I think we should also add this explicit set of R options instead of
--
That is the complete list of what I think we should add as explicit options out of this set from R's help page:
The text was updated successfully, but these errors were encountered: