[R] Column width in R terminal ?

ce zadig_1 at excite.com
Wed Oct 14 16:27:47 CEST 2015


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
>

-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list