Re: [R] formatting print statements with multiple lines

2008-12-18 Thread Stephan Kolassa
Use cat() with "\n" for newlines and "\t" for tabs, cat("Input criteria does not meet specifications. Check input against the following requirements:\n\ta >= 0\n\t") HTH, Stephan Brigid Mooney schrieb: When executing the command: print(cat(paste("Input criteria does not meet specifica

Re: [R] formatting print statements with multiple lines

2008-12-18 Thread John Fox
Dear Brigid, cat() prints by default to standard output and invisibly returns NULL, which print() prints. I think that what you want is cat("Input criteria do not meet specifications. Check input against the following requirements: a >= 0 b <= 0 c >= 0 \n") I