Skip to content

GUI bracket-matching and window positioning

5 messages · Tim Cole, Hans-Jörg Bibiko, Timothy Bates +2 more

#
A couple of queries-comments about the Mac gui.

1. I'm curious what determines where new editor and quartz windows are 
positioned. Usually editor windows appear in the middle of my screen, 
and successive windows in the session shift down and to the right. My 
impression is that the last window position is remembered between 
sessions. Is there a way to reset the position of the initial window?

2. Quartz windows always open bottom left on my screen, irrespective of 
the preference setting. I've mentioned this before, but the behaviour 
has not changed. Am I altering the preference setting incorrectly, or is 
it broken?

3. I'm much enjoying the new gui editor. I've noticed that the following 
arcane bit of code defeats the bracket balancer, because some of the 
brackets are quoted and others aren't. Note that all the quote 
characters are single quotes.

     b <- 'b+c'
     paste('(a', ifelse(!is.null(b), paste('-(', b, '))', sep=''), ')'), 
sep='')

My setup:
R version 2.13.1 (2011-07-08)
[R.app GUI 1.41 (5874) i386-apple-darwin9.8.0]

Tim
#
Hi Tim,

thanks for the report.
On 14 Jul 2011, at 17:30, Tim Cole wrote:

            
For R Script Editor windows we're using Cocoa's default setting of remembering the last opened window position. It's not ideal but we're working on a better solution including the chance to ignore remembering the last position.
Unfortunately it seems that this setting is broken. We're trying to fix it.
This was fixed in revision 5879 :)


Kind regards,
--Hans

**********************************************************
Hans-Joerg Bibiko
Max Planck Institute for Evolutionary Anthropology
Department of Linguistics
Deutscher Platz 6     phone:   +49 (0) 341 3550 341
D-04103 Leipzig       fax:     +49 (0) 341 3550 333
Germany               e-mail:  bibiko[-at-]eva.mpg.de
#
hi Hans,

Prompted by a "tim" posting (cole not me) email on the list, I thought I'd send in my wish list even though it's not christmas :-) Thanks for the massive improvements you've made already - they save me around 1hr a day, I think! Hope other people are discovering them: Maybe R could have a "tip of the day" bubble, like TextMate :-)

1. Package Manager
a. Allow sort by "loaded"
b. A grep filter would be amazing!

2. Workspace Browser
a. Allow sort by structure (by kb/product of dimensions..?)
b. Allow selection of multiple items
  1. cmd-shift down extends selection
  2. cmd-click extends selection
c. Broom: allow the follow delete behaviors
  1. cmd-click on broom deletes without confirmation
  2. delete key = delete with confirmation
  3. cmd-delete = delete without confirmation

3. Preferences: Quartz
a. Bind ?tab? key to  move focus from height->width->pixels fields


Best wishes,
tim bates
#
On Jul 14, 2011, at 2:45 PM, Hans-J?rg Bibiko wrote:

            
Are we? ;) This setting was for the old Quartz device (long time ago). It has no effect for the new Quartz device which is provided by R and not the GUI - in fact that device doesn't even have an option for placement (partially because the new Quartz device is backend-agnostic so such setting makes no sense in general - let's say for PDF output). Because the new Quartz device is part of R, this won't change until both the GUI and R agree on some way to communicate the setting.

There are two issues here: the preference pane setting should go since it has no effect. As for Quartz, it should allow a way to set the window location and probably use something analogous to the Cocoa default setting except we can't let it set the size (because that is set by the quartz() function).

Cheers,
Simon
5 days later
#
I'd agree with Tim, I'm saving a great deal of time with the recent GUI improvements - I love the ability to run from the help window!

I was wondering (and it may be a feature already) if there is any way to stop the focus shifting from the console window to the plot window when a new plot (quartz) is started? It seems to be a part of plot.new(), so maybe it isn't a GUI issue, but just clicking the quartz button in the gui doesn't do it. I'm probably the only person in the world who finds this a problem, but for some reason in my workflow it can be a blocker when the focus shifts but I'm still trying to feed commands in.

cheers

Ben
On 15/07/2011, at 3:17 AM, Timothy Bates wrote: