[R] multiline system call

Nicolas Mazziotta nicolas.mazziotta at swing.be
Fri Dec 22 08:54:22 CET 2006


Hello,

I am trying to call sendmail from within R via system(). As sendmail reads 
from STDIN, I need to pass a multiline input as an argument.

E.g. (not working):

	system('sendmail -f xxx at swing.be -t yyy at swing.be\ntest\n.\n')

I tried a lot of ways to type the EOL characters, but cannot get them work the 
right way. This leads to several problems. For instance, R waits for me to 
enter <control-D> at the end of the sequence.

Thanks for any help.



-- 
Nicolas Mazziotta

The contents of this e-mail, including any attachments, are ...{{dropped}}



More information about the R-help mailing list