From ggrothendieck at gmail.com  Wed May 16 20:55:20 2007
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Wed, 16 May 2007 14:55:20 -0400
Subject: [Rd] 'attach workspace' on R console File menu
In-Reply-To: <005501c797e4$19e73930$0e010a0a@headquarters.silicoinsights>
References: <004001c797dd$4ee49bc0$0e010a0a@headquarters.silicoinsights>
	<971536df0705161033h777a3b81xc193243211a5ec96@mail.gmail.com>
	<005501c797e4$19e73930$0e010a0a@headquarters.silicoinsights>
Message-ID: <971536df0705161155i18cd78bcncd861baf34a82076@mail.gmail.com>

I think it would be possible but its a bit of work.  Note that this
deletes the original File menu and adds a new File menu at the end.

   winMenuAdd("File")
   winMenuDel("File")

By deleting all the original menus and replacing them in this way and
then tediously replacing the items on each menu I think you could do it.
I haven't tried it myself to check whether it really is possible to add
all the menu items.

On 5/16/07, Christos Hatzis <christos at nuverabio.com> wrote:
> Thanks, Gabor.
> This does not add a new item to the existing File menu, instead it creates a
> new user menu where the new item can be added.  Although not ideal, it is an
> acceptable workaround.
>
> Thanks.
> -Christos
>
> > -----Original Message-----
> > From: Gabor Grothendieck [mailto:ggrothendieck at gmail.com]
> > Sent: Wednesday, May 16, 2007 1:34 PM
> > To: christos at nuverabio.com
> > Cc: r-devel at stat.math.ethz.ch
> > Subject: Re: [Rd] 'attach workspace' on R console File menu
> >
> > On 5/16/07, Christos Hatzis <christos at nuverabio.com> wrote:
> > > Quite often I save misc functions and data objects as .RData files
> > > that I can use in other sessions.  Although I could 'Load
> > Workspace"
> > > these files, most of the times I prefer attaching them.  It
> > would be
> > > really convenient to have a menu item under the File menu on the
> > > Windows R Console to allow attaching workspaces, e.g.
> > >
> > > --------------------
> > > Attach Workspace...
> > > Load Workspace...
> > > Save Workspace...
> > > --------------------
> > >
> > > Is this something that could make the wish list for future
> > R Console
> > > features?
> >
> > It is possible for you to set it up yourself in your profile
> > for R under Windows. See ?winMenuAdd
> >
> >
>
>
>



[Rd] 'attach workspace' on R console File menu
Gabor Grothendieck