Skip to content
Prev 165147 / 398506 Next

formatting print statements with multiple lines

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 hope this helps,
 John

------------------------------
John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
web: socserv.mcmaster.ca/jfox
On
NULL
http://www.R-project.org/posting-guide.html