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
dows 8 (64 bit or 32 bit):
> >>
> >> > options('width')
> >> $width
> >> [1] 90
> >>
> >> # Drag the window to resize, then:
> >>
> >> > options('width')
> >> $width
> >> [1] 124
> >
bit):
> >>
> >> > options('width')
> >> $width
> >> [1] 90
> >>
> >> # Drag the window to resize, then:
> >>
> >> > options('width')
> >> $width
> >> [1] 124
> >>
> >> -
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-
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
---
> 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
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:
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
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
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
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
11 matches
Mail list logo