From thomas@biostat.washington.edu  Thu Sep 21 16:49:31 2000
From: thomas@biostat.washington.edu (Thomas Lumley)
Date: Thu, 21 Sep 2000 08:49:31 -0700 (PDT)
Subject: [Rd] width in options() (PR#666)
In-Reply-To: <200009211546.RAA12787@pubhealth.ku.dk>
Message-ID: <Pine.GSO.4.21.0009210848220.27694-100000@atlas.biostat.washington.edu>

On Thu, 21 Sep 2000 aprasad@fs.fed.us wrote:

> Full_Name: Anantha Prasad
> Version: 1.1.1
> OS: Linux
> Submission from: (NULL) (199.131.134.57)
> 
> 
> When I try to use 
> > options(width=201)
> Error in options(...) : invalid width parameter
> It looks like 200 is the max. limit. THis is a huge limitation...for if I am
> trying
> to sink() an R object that has 50 variables with a width of say 1000 characters
> and
> a length of say 1000 lines, the output I get gets split at 200 characters so
> that it
> has 5000 lines!
> Eg.,
> Say an R object x with 1000 lines and 50 variables (1000 characters of width)
> > sink("tst.dat")
> > x
> > sink()
> Now, tst.dat has the output split at 200 characters making it very difficult to
> use
> this dataset. So, scripts that depend on the entire file structure to come
> intact
> will produce errors.
> 
> This limitation is not there in S-PLUS where you can set the width to any
> number.
> Hope this is fixed soon as many scripts I use depend on me setting width to
> atleast
> 2000!


While this may well be a useful feature to add, note that the preferred
way of writing a rectangular dataset to a file is with write.table(),
which does not have width restrictions

	-thomas

Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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] width in options() (PR#666)
Thomas Lumley