[R] R TERMINAL Vs R GUI

jim holtman jholtman at gmail.com
Sun Jul 5 06:07:47 CEST 2009


I just ran a test with a couple of my scripts and they took the same
amount of CPU time in both Rterm and RGUI. (37.2 CPU sec on Rterm and
37.1 CPU sec on RGUI).  Elapsed times were the same and memory usage
was similar.

It would be helpful to provide some more information.  For example, do
the following commands before/after your scripts:

proc.time()
memory.size()
......your scripts
proc.time()
memory.size()

This would provide some indication of the resources being used.

On Sat, Jul 4, 2009 at 11:43 PM,
vinay_rk<radhakrishna.pendyala at gmail.com> wrote:
>
> Hi
>
> I send commands to R using an IDE. Configured a few hotkeys to send the
> commands to R. I am using Tinn-R and it has options to open a RGUI or RTerm.
>
> My datasets are in the range of 600 MB - 2GB and I generally use scan() or
> filehash to work on such data sets. However there are times when I read the
> entire dataset in to R. Obviously it  eats up a lot of memory and I am aware
> of it. However what I have noticed is , if I keep performing operations , I
> get a message that "cannot allocate vector of XYZ MB"  in RGUI.  However R
> Term doesn't crib that often.
>
> This is just my observation after running very many scripts that RTERM is
> faster than RGUI. I was wondering whether this observation is a correct one
> or not ? Anyways after seeing the speed of ops in Rterm, I no longer use
> RGUI ... I cannot explain the rationale based on any R specific reason..I
> have just found over a period of time that RTerm works faster...Yes, I do
> loose out on some of the menu driven functions that RGUI provides...
>
> So, just to reiterate my basic question, Have members in this forum found
> any difference in speeds while working with RTerm Vs RGui? Or Do you all
> think speeds should be the same and I am seeing some random behavior which
> has nothing with to do with R ?
>
> Regards
> Vinay
>
>
>
>
> jholtman wrote:
>>
>> Exactly what are you doing and how are you 'sending' in the commands?
>> Are you doing a cut/paste to the RGUI?  If so, have you tried
>> 'source'?  I use RGUI all the time and have no performance/memory
>> problems with executing scripts; I always 'source' in most of the
>> scripts.
>>
>> Some more detail on exactly what you are doing in both environments
>> would help to understand your problem.
>>
>> On Sat, Jul 4, 2009 at 4:34 PM, vinay_rk<radhakrishna.pendyala at gmail.com>
>> wrote:
>>>
>>> Hello everyone,
>>>
>>> This is my first post on this forum and I hope I communicate my problem
>>> correctly.
>>>
>>> I have been using R for sometime and have always used RGUI to send
>>> commands
>>> to R. However recently I had to work on large data sets and memory was an
>>> issue. I have started using R terminal and the speed of operations has
>>> improved considerably .
>>>
>>> Is this always the case ? Should one follow as an informal guide line
>>> that R
>>> terminal hogs less memory than RGUI. Or Am I witnessing some random
>>> behavior
>>> and it doesn't matter which ever interface you use ?
>>>
>>> Thanks in advance for your suggestions
>>> Regards
>>> Vinay
>>> --
>>> View this message in context:
>>> http://www.nabble.com/R-TERMINAL-Vs-R-GUI-tp24337825p24337825.html
>>> Sent from the R help mailing list archive at Nabble.com.
>>>
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>
>>
>>
>> --
>> Jim Holtman
>> Cincinnati, OH
>> +1 513 646 9390
>>
>> What is the problem that you are trying to solve?
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>
> --
> View this message in context: http://www.nabble.com/R-TERMINAL-Vs-R-GUI-tp24337825p24339889.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?




More information about the R-help mailing list