From murdoch@stats.uwo.ca  Wed May 16 20:11:07 2001
From: murdoch@stats.uwo.ca (Duncan Murdoch)
Date: Wed, 16 May 2001 15:11:07 -0400
Subject: [Rd] Strange formatting
Message-ID: <cmh5gts4movjvp4o4a91ropt5oarekdpfi@4ax.com>

I've never noticed this before, though it's probably not new.  In
1.2.3 for Windows, if I print a short vector the formatting is
different than if I print a long one, whether or not they fit on one
line.  The short/long split appears to be between 9 and 10 elements:

 > 1:9
 [1] 1 2 3 4 5 6 7 8 9
 > 1:10
  [1]  1  2  3  4  5  6  7  8  9 10

 > sqrt(1:9)
 [1] 1.000000 1.414214 1.732051 2.000000 2.236068 2.449490 2.645751
2.828427
 [9] 3.000000
 > sqrt(1:10)
  [1] 1.000000 1.414214 1.732051 2.000000 2.236068 2.449490 2.645751
2.828427
  [9] 3.000000 3.162278


The spacing between the integer values is different, and there's a
space before the "[1]" in the longer vectors.

Is this intentional?  What's the reasoning for this difference?

Duncan Murdoch
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Strange formatting
Duncan Murdoch