search for: not_print_in_if_block

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

2009 Sep 07
1
Why this statement does not print anything in an if-statement that includes 'q()'?
...e the second 'length(args)' to 'print(length(args))', the script will print the length of 'args'. Can somebody let me know what is the difference between the 'print(x)' statement and the 'x' statement where 'x' is a variable? Regards, Peng $ Rscript not_print_in_if_block.R > args=commandArgs(T) > length(args) [1] 0 > > if(length(args)!=3){ + length(args) + q() + }