[R-SIG-Mac] Bug in R.app 1.53

Earl Brown ekbrown at k-state.edu
Mon Dec 17 20:52:52 CET 2012


(Potentially) helpful info about the bug:

I could NOT reproduce the bug when I opened my code file in TextWrangler and simply copied the code and then pasted it directly into the R console in R.app. The same thing happened when I used TextEdit and even MS Word. However, when I opened the code file with the built-in text editor in R.app and copied and pasted code into the R console I got the bug again. The same thing happened when I executed the code directly in the built-in text editor with the keyboard shortcut command + enter.

Could the bug be caused by the clipboard that the built-in text editor uses, which seems to be different than the system-wide clipboard that (I assume) TextWrangler, TextEdit and MS Word use. If not, why would the bug only be reproduced when I copy the code in the built-in text editor but not when I copy the code in other programs?

Earl Brown

-----
Earl K. Brown, PhD
Assistant Professor of Spanish Linguistics
Advisor, TEFL MA Program
Department of Modern Languages
Kansas State University

----- Mensaje original -----
De: "Simon Urbanek" <simon.urbanek at r-project.org>
Para: "Earl Brown" <ekbrown at k-state.edu>
CC: R-SIG-Mac at r-project.org
Enviados: Lunes, 17 de Diciembre 2012 10:44:24
Asunto: Re: [R-SIG-Mac] Bug in R.app 1.53

The grey color is output on stdout, typically it is a solicited output of system commands, for example try

> system("date")
Mon Dec 17 11:36:56 EST 2012
> 

The date will be in gray because the "date" command will print it out there so the GUI passes it on. It's not necessarily R.app itself generating that output.

Now the big question is who is creating that output - it can be anything from 3rd party hacks to R or custom top-level code used by the user. I don't see any printf/puts in the GUI code so it's unlikely produced by the GUI itself. I'll see if I can reproduce it ..

Cheers,
Simon


On Dec 15, 2012, at 12:12 AM, Earl Brown wrote:

> When I run code in R.app, in addition to getting the results I expect, the console also randomly prints out previously submitted code and places it before the prompt arrow and/or before the output of what my code asks R to do. The color of this random, unwanted output is gray. This doesn't happen when I run my code in R in a Terminal window, nor did it happen before I upgraded to R 2.15.2 and R.app 1.53 a few days ago. Take a look at the two attached screen shots, one of R.app and the other of Terminal running the same code. And here's my sessionInfo():
> 
>> sessionInfo()
> R version 2.15.2 (2012-10-26)
> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
> 
> locale:
> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
> 
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
> 
> Any ideas? Thanks, Earl Brown
> 
> -----
> Earl K. Brown, PhD
> Assistant Professor of Spanish Linguistics
> Advisor, TEFL MA Program
> Department of Modern Languages
> Kansas State University
> 
> <Screen Shot 2012-12-14 at 10.53.49 PM.png><Screen Shot 2012-12-14 at 10.54.14 PM.png>_______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



More information about the R-SIG-Mac mailing list