Hi, I'm using windows GUI version. Is there any way to save window position from previous session?Everytime I open GUI starts as maximized and I have to resize it. Thanks for the help. SI
On Wed, 17 Mar 2004 08:13:11 +0900 (JST), SI <risdpizza at yahoo.co.jp> wrote :>Hi, > >I'm using windows GUI version. Is there any way >to save window position from previous session?Everytime I >open GUI starts as maximized and I >have to resize it.Set up the console the way you want it, then go to Edit|GUI preferences... and save them to a file. If you use the default file, it'll apply every time you start Rgui. To do the same for graphics windows, you can set up your own function and set it to be the default graphics device function. E.g.> tinywindows <- function(...) windows(width=1, height=1, ...) > options(device="tinywindows") > plot(1,1)Error in plot.new() : Figure margins too large Duncan Murdoch
Hi, thanks for your reply. But I guess I misfired a question. I want to save the size of _GUI_ window, NOT console window. GUI window is the window with "RGui" writtenon the left of title bar. Console window is inside of the GUI window with "R Console" on its title bar. I save my preference of console window in the default Rconsole file. Every time I start an R GUI, that is, every time I start R on my Windows XP, it is started as maximized, showing all over the screen. I always resize and move its position on the screen. Is there a way to save GUI window size and position? I close R after running a script involving a big data, and restart R, as R seems to slow down considerably even I eliminate the big object on memory with rm(). So saving size and location of GUI saves me some hustle. Thanks in advance. SI> --- Duncan Murdoch <dmurdoch at pair.com> > > On Wed, 17 Mar 2004 08:13:11 +0900 (JST), SI > > <risdpizza at yahoo.co.jp> > > wrote : > > > > >Hi, > > > > > >I'm using windows GUI version. Is there any way > > >to save window position from previous > > session?Everytime I > > >open GUI starts as maximized and I > > >have to resize it. > > > > Set up the console the way you want it, then go to > > > > > Edit|GUI preferences... > > > > and save them to a file. If you use the default > > file, it'll apply > > every time you start Rgui. > > > > To do the same for graphics windows, you can set > up > > your own function > > and set it to be the default graphics device > > function. E.g. > > > > > tinywindows <- function(...) windows(width=1, > > height=1, ...) > > > options(device="tinywindows") > > > plot(1,1) > > Error in plot.new() : Figure margins too large > > > > Duncan Murdoch > > __________________________________________________>
Thanks a ton for your help. Now I'm totally an SDI person. Cheers, SI FYI ISO-2002-JP and us all believe in \, which is our currency symbol. We use it in place of a backslash. For some good reasons, ancient programmers assigned the same code in US-ASCII for backslash to \ in JIS X 0201.>Hi, > >thanks for your reply. But I guess I misfired aquestion.> >I want to save the size of _GUI_ window, NOT console >window. GUI window is the window with "RGui" written >on the left of title bar. Console window is inside >of the GUI window with "R Console" on its title bar. >I save my preference of console window in the >default Rconsole file.Okay, I understand now. I don't think that window size is saved. I usually use R in SDI mode (option --sdi on the command line), so I don't see that. If you want to save that window's position, you'll need to play around with the R source code (look in src/gnuwin32/rui.c, I think; or possibly one of the files in src/gnuwin32/front-ends). I think it's easier to switch to SDI mode! Duncan Murdoch ----------- One option to consider is to start R in "sdi" mode. My shortcut for R-1.8.1 on WinXP is... "C:\Program Files\R\rw1081\bin\Rgui.exe" --sdi Hmmm... looks like ISO-2002-JP doesn't believe in the usual backslash. Substitute a back-slash for \. This opens only a console window. Help and graphics windows open as windows of their own, not sub-windows of the GUI. See if that helps. Cheers Jason