I am writing a function that breaks the output if it gets bigger than the 
available console width.
I noticed that a right margin always remains. The following code shows that the 
actual console size
is always bigger than the one reported by options()$width. What might be the 
reason?
(Software: MacOS 10.6, R 2.12)

> cat(paste(rep(c(1:9, 0), each=10), collapse=""))
11111111112222222222333333333344444444445555
55555566666666667777777777888888888899999999
990000000000
> options()$width
[1] 46

> cat(paste(rep(c(1:9, 0), each=10), collapse=""))
11111111112222222222333333333344444444445555555555666666666677777
77777888888888899999999990000000000
> options()$width
[1] 59

Thanks 
Mark
–––––––––––––––––––––––––––––––––––––––
Mark Heckmann
Blog: www.markheckmann.de
R-Blog: http://ryouready.wordpress.com

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to