Closed cderv closed 3 years ago
I wanted to use xfun::Rscript_call with passing some options to Rscript like --vanilla
xfun::Rscript_call
Rscript
--vanilla
Issue is
system2()
xfun::Rscript_call()
...
args=
This does not seems possible for now. I think we need a rscript_args= to pass.
rscript_args=
Also, if this function does not supports it, one could use callr which has this option. (and which I did)
If you want to support that, I'll open a PR.
Yes, please. The most challenging part is probably naming. Perhaps cmd_args? (command-line arguments to be passed to Rscript)
cmd_args
I was thinking of rscript_args to be more explicit but that is the same idea.
rscript_args
I wanted to use
xfun::Rscript_call
with passing some options toRscript
like--vanilla
Issue is
system2()
fromxfun::Rscript_call()
....
is made for that butsystem2()
expectargs=
which is already used byxfun::Rscript_call()
This does not seems possible for now. I think we need a
rscript_args=
to pass.Also, if this function does not supports it, one could use callr which has this option. (and which I did)
If you want to support that, I'll open a PR.