ubuntu - Run an R-script from command line and store results in subdirectory -
i want run r-script command line (on linux machine) , store results in subdirectory of working directory. looks that:
./myscript.r [param 1] [param 2] [param 3] given 3 binomial parameters there 4 conditions in total. want store results of each condition in subdirectory of working directory.
is there elegant way or need copy r-script every subdirectory?
purcell,try saving , running script on computer. provide few different kinds , combinations of arguments.
#!/usr/bin/rscript args <- commandargs(true) print(args) class(args) for instance, ran ./test.r test=1 one=test.
using command in combination paste0() statements should give need tailor output locations based on parameters provided.
Comments
Post a Comment