Re: [R] options()$width ignored by print.formula

2012-11-06 Thread Prof Brian Ripley
On 06/11/2012 17:54, Sarah Goslee wrote: Thanks, Prof. Ripley. Using deparse(b$formula, width.cutoff = options()$width) works as I'd expected (full example below). So I can use that to write a custom summary.gam(), though that still seems like a lot of work to get summary(b) to follow the usual

Re: [R] options()$width ignored by print.formula

2012-11-06 Thread Sarah Goslee
Thanks, Prof. Ripley. Using deparse(b$formula, width.cutoff = options()$width) works as I'd expected (full example below). So I can use that to write a custom summary.gam(), though that still seems like a lot of work to get summary(b) to follow the usual R output conventions. Sarah library(mgcv)

Re: [R] options()$width ignored by print.formula

2012-11-06 Thread Prof Brian Ripley
On 06/11/2012 17:01, Sarah Goslee wrote: Hi all, I'm working with summary.gam() and noticed that the options()$width argument is ignored by some components of that function, in particular the formula, which is printed at an arbitrary length regardless of the desired width. I've tracked the prob

[R] options()$width ignored by print.formula

2012-11-06 Thread Sarah Goslee
Hi all, I'm working with summary.gam() and noticed that the options()$width argument is ignored by some components of that function, in particular the formula, which is printed at an arbitrary length regardless of the desired width. I've tracked the problem back to print.formula(), so at a lower