Skip to content

'attach workspace' on R console File menu

6 messages · Henrique Dallazuanna, Gabor Grothendieck, Christos Hatzis

#
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?

Thanks.
-Christos

Christos Hatzis, Ph.D.
Nuvera Biosciences, Inc.
400 West Cummings Park
Suite 5350
Woburn, MA 01801
Tel: 781-938-3830
www.nuverabio.com <http://www.nuverabio.com/>
#
On 5/16/07, Christos Hatzis <christos at nuverabio.com> wrote:
It is possible for you to set it up yourself in your profile for R under
Windows. See ?winMenuAdd
#
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
#
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:
#
Yes, I found that out as well.  
Rebuilding the File menu is probably too much of a hassle and will introduce
dependencies that would be difficult to maintain.  I hope that the core team
would consider this request.

Thanks.
-Christos