search for: home_moose

Displaying 1 result from an estimated 1 matches for "home_moose".

2012 Mar 28
2
getopt does not work as expected!
...e 'q(status=0)' ------") q(status=0); } if ( is.null(opt$verbose ) ) { opt$verbose = 0 } if ( is.na(opt$verbose ) ) { opt$verbose = 0 } print(sprintf("%s: do something with %s!",self,infile)) If I run this script from the command line, I get the output: rose at moose:/home_moose/rose/Txt/src/Test/R(24)$ ./getopt_test.R [1] "/usr/lib64/R/bin/exec/R: do something with test.dat!" Why is commandArgs()[1] = "/usr/lib64/R/bin/exec/R" and not "getopt_test.R" as described by the help (?getopt)? rose at moose:/home_moose/rose/Txt/src/Test/R(25)$ ./g...