Skip to content
Prev 4528 / 63421 Next

width in options() (PR#666)

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

            
am

[...]
to
It's set as macro R_MAX_WIDTH_OPT in Print.h.  All you needed to do is to
change that and re-compile.  Simple, surely?   Even simple things like this
take time to track down and deal with, so it would be appreciated if bug
reporters could contribute to the R project by doing as much as they can
themselves.

Presumably it is there to protect people from themselves, but as e.g.
strings can come out much longer I don't think it is very effective.
Alternatively as it dates from the era of fixed-size output buffers it
might have been to protect R, but that seems no longer necessary,
at least on a Unix console (it might be on other output devices).

I've upped the limit to 10000 and added comments in the help file and
a more informative warning:
Error in options(...) : invalid width parameter, allowed 10...10000