[R] Column width in R terminal ?

Sarah Goslee sarah.goslee at gmail.com
Wed Oct 14 16:29:43 CEST 2015


You should probably start by investigating what
system("echo $COLUMNS", intern = TRUE)
returns on your system.

That works for me on linux.

Sarah


On Wed, Oct 14, 2015 at 10:27 AM, ce <zadig_1 at excite.com> wrote:
>
> Thanks it works but I resize my terminals often. So I put in .Rprofile the line:
>
> options(width=system("echo $COLUMNS",intern =TRUE))
>
> but I get error :
> Error in options(width = system("echo $COLUMNS", intern = TRUE)) :
>   invalid 'width' parameter, allowed 10...10000
>
> command works fine in  R but not in .Rprofile ?
>
>
> -----Original Message-----
> From: "Sarah Goslee" [sarah.goslee at gmail.com]
> Date: 10/14/2015 10:04 AM
> To: "ce" <zadig_1 at excite.com>
> CC: "r-help" <r-help at r-project.org>
> Subject: Re: [R] Column width in R terminal ?
>
> See ?options in particular the width option.
>
> Sarah
>
> On Wed, Oct 14, 2015 at 9:52 AM, ce <zadig_1 at excite.com> wrote:
>>
>> Dear all,
>>
>> I use regular R in xterm terminal in KDE Gui . Even though I have a big terminal  and LINES and COLUMNS parameters are set, R shows data frames and lists only 80 characters per line, then the rest on the next line.  How I can set it to real terminal size so it shows all in one line?
>>
>> thanks
>> CE
>>



More information about the R-help mailing list