rsnt_translations
57,772
edits
No edit summary |
No edit summary |
||
Line 154: | Line 154: | ||
== Passing arguments to R scripts == <!--T:84--> | == Passing arguments to R scripts == <!--T:84--> | ||
Sometimes it can be useful to pass parameters as arguments to R scripts, to avoid having to either change the R script for every job or having to manage multiple copies of otherwise identical scripts. This can be useful | Sometimes it can be useful to pass parameters as arguments to R scripts, to avoid having to either change the R script for every job or having to manage multiple copies of otherwise identical scripts. This can be useful for specifying the names for input- or output files, as well as specifying numerical parameters. For example, instead of specifying the name of an input file and/or a numerical parameter like this | ||
{{Command | |||
filename = "input.csv" | |||
iterations = 5 | |||
}} | |||
<!--T:85--> | <!--T:85--> |