[R] Printing linefeeds using sprintf

2003-08-14 Thread Haynes, Maurice (NIH/NICHD)
Is there a way to print complex, multi-line text and numeric output with good control of the field width and precision of numeric values? In the first example in the R Documentation for the sprintf function, there appears to be a linefeed code "\n", but it is printed literally. > sprintf("%s is %

Re: [R] Printing linefeeds using sprintf

2003-08-14 Thread Hedderik van Rijn
Is there a way to print complex, multi-line text and numeric output with good control of the field width and precision of numeric values? In the first example in the R Documentation for the sprintf function, there appears to be a linefeed code "\n", but it is printed literally. sprintf("%s is