Re: [Rd] dput line width

2014-05-27 Thread Greg Snow
Looking at the help file and code for dput does not show any simple way to do what you want. But the help page makes reference to the deparse function and deparse does have a width.cutoff argument. So you could use deparse instead of dput (the use cat or other functions to display the results sim

[Rd] dput line width

2014-05-27 Thread Σταῦρος Μακράκης
Is there some way to control the line width that dput uses? options(width=...) does not affect dput. For example, currently > dput(1:30*2) c(2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, *line break here* 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60) but on a wider displa