I want to run R-script from the command line (on a Linux machine) and save the results in a subdirectory of the working directory. It looks like this:
./myscript.r [param 1] [param 2] [param 3]
Given 3 binomial parameters, a total of 4 conditions. I want to save the results of each condition in a subdirectory of the working directory.
Is there an elegant way to do this, or do I really need to copy my R-script into each subdirectory?
source
share