How to capture the output of system() How to capture the output of system() r r