-
Notifications
You must be signed in to change notification settings - Fork 51
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
FR for support commandArgs #32
Comments
littler predates Rscript. I have little interest in this. Plus, if you use a proper tool like docopt for R then it is handled for you. |
Thanks for info. Instead of new dependency the following would if(!exists("argv")) argv = commandArgs(TRUE) else argv = as.character(argv)
cat(str(argv))
q("no")
|
Thanks. I stuck that onto the wiki. |
I added some comments on the wiki. The more I think about it, the less sense it makes.
Did you mean to assign the other way? |
I mean a R code which will works the same for both |
Should the setting of |
Yes, but changing |
Not sure. You may want to discuss it on r-devel first as you will need a sponsor for the change in any event. |
While
argv
is somehow clear way it requires the R script to be adjusted to be called from littler. littler could hook thecommandArgs
function and inject ownargv
it would allow running scripts originally written forRscript
- more portable.The text was updated successfully, but these errors were encountered: