Re: [R] Current Terminal (console) width

2017-01-20 Thread Jeff Newmiller
t; >> > P Please consider the environment before printing. >> > >> > >> > On Fri, Jan 20, 2017 at 9:29 AM, David L Carlson > >> wrote: >> > >> >> I cannot replicate that on Windows 8 (64 bit or 32 bit): >> >> >> >> > op

Re: [R] Current Terminal (console) width

2017-01-20 Thread Ista Zahn
dows 8 (64 bit or 32 bit): > >> > >> > options('width') > >> $width > >> [1] 90 > >> > >> # Drag the window to resize, then: > >> > >> > options('width') > >> $width > >> [1] 124 > >

Re: [R] Current Terminal (console) width

2017-01-20 Thread Jared Studyvin
bit): > >> > >> > options('width') > >> $width > >> [1] 90 > >> > >> # Drag the window to resize, then: > >> > >> > options('width') > >> $width > >> [1] 124 > >> > >> -

Re: [R] Current Terminal (console) width

2017-01-20 Thread Ista Zahn
gt;> [1] 124 >> >> - >> David L Carlson >> Department of Anthropology >> Texas A&M University >> College Station, TX 77840-4352 >> >> -Original Message- >> From: R-help [mailto:r-help-boun...@r-

Re: [R] Current Terminal (console) width

2017-01-20 Thread William Dunlap via R-help
The answer is UI-specific. In the supplied-by-R-core Windows GUI for R, options("width") is the current width of the command window. If you run R in a cmd.exe window instead of the GUI you can get the width of the cmd window by doing some string manipulations on the output of shell("mode con", in

Re: [R] Current Terminal (console) width

2017-01-20 Thread Bert Gunter
--- > David L Carlson > Department of Anthropology > Texas A&M University > College Station, TX 77840-4352 > > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Jared Studyvin > Sent: Friday, January 20, 2017 10:18 AM

Re: [R] Current Terminal (console) width

2017-01-20 Thread Jared Studyvin
ology > Texas A&M University > College Station, TX 77840-4352 > > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Jared > Studyvin > Sent: Friday, January 20, 2017 10:18 AM > To: Ben Tupper > Cc: r-help mailing list > Subject:

Re: [R] Current Terminal (console) width

2017-01-20 Thread David L Carlson
College Station, TX 77840-4352 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Jared Studyvin Sent: Friday, January 20, 2017 10:18 AM To: Ben Tupper Cc: r-help mailing list Subject: Re: [R] Current Terminal (console) width Ben, That options contro

Re: [R] Current Terminal (console) width

2017-01-20 Thread Jared Studyvin
Ben, That options control is about the size of what is printed. I'm looking for the actual size of the window in real time. options('width') ## returns 80 resize the terminal window options('width') ## returns 80 Sys.getenv('COLUMNS') ## returns current window width resize the terminal window Sy

Re: [R] Current Terminal (console) width

2017-01-20 Thread Ben Tupper
Hi, Have you looked at > > options("width") > $width > [1] 80 and does that get at what you need? Ben > On Jan 20, 2017, at 9:58 AM, Jared Studyvin wrote: > > Hello, > > On a non Windows OS the following command: Sys.getenv("COLUMNS") > Will return the current width of the R terminal (c

[R] Current Terminal (console) width

2017-01-20 Thread Jared Studyvin
Hello, On a non Windows OS the following command: Sys.getenv("COLUMNS") Will return the current width of the R terminal (console) but this does not work on a Windows OS. Does anyone know equivelant R code when install on a Windows OS? I'm using WIndows 10 Pro Version: 1607; R 3.3.2 Thanks, *Ja