We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
E.g. one can type it incorrectly: Rscript index.R -- test instead of Rscript index.R --test.
Rscript index.R -- test
Rscript index.R --test
Is this somehow preventable?
The text was updated successfully, but these errors were encountered:
Using Gitpod, we can verify that an empty flag is dangerous. --value ok works fine:
--value ok
Rscript test.R --value ok Loading required package: utils Tracing function "install.packages" in package "utils" List of 6 $ trials : int 5 $ dataset : chr "demo-data.csv" $ cores : int 1 $ user :List of 1 ..$ name: chr "demo" $ description: chr "This is a multi line\ndescription." $ value : chr "ok" - attr(*, "trace")=List of 2 ..$ kind : chr "merged" ..$ value:List of 2 .. ..$ :List of 2 .. .. ..$ kind : chr "file" .. .. ..$ value: chr "/workspace/rconfig/inst/examples/rconfig.yml" .. ..$ :List of 2 .. .. ..$ kind : chr "args" .. .. ..$ value: chr "--value ok" - attr(*, "class")= chr "rconfig"
--value ok leaves a trace but sets no value:
Rscript test.R -- value ok Loading required package: utils Tracing function "install.packages" in package "utils" List of 5 $ trials : int 5 $ dataset : chr "demo-data.csv" $ cores : int 1 $ user :List of 1 ..$ name: chr "demo" $ description: chr "This is a multi line\ndescription." - attr(*, "trace")=List of 2 ..$ kind : chr "merged" ..$ value:List of 2 .. ..$ :List of 2 .. .. ..$ kind : chr "file" .. .. ..$ value: chr "/workspace/rconfig/inst/examples/rconfig.yml" .. ..$ :List of 2 .. .. ..$ kind : chr "args" .. .. ..$ value: chr "-- value ok" - attr(*, "class")= chr "rconfig"
Sorry, something went wrong.
Catch empty flags #3
069d4c7
No branches or pull requests
E.g. one can type it incorrectly:
Rscript index.R -- test
instead ofRscript index.R --test
.Is this somehow preventable?
The text was updated successfully, but these errors were encountered: