search for: winmenuadditem

Displaying 11 results from an estimated 11 matches for "winmenuadditem".

2007 Nov 07
2
Adding submenus to existing consol GUI menu
If possible I would like to add two sub-menus to the R Console under Windows. For example, I would like to add: winMenuAddItem("File", "Load CSV...", "loadCSV()") winMenuAddItem("File", "Save CSV...", "saveCSV()") and have them appear under the initial 'File' item rather than add a new 'File' menu item. I seem to recall from somewhere that this i...
2004 Jun 01
1
WinMenu's question
I am using the Windows menu functions below which will work on the first pass, but if I repeat the same script I cannot get the WinMenuAddItem to work. This is a problem if I change the menu structure and reread the source code I am forced to quit and restart Rgui. "try.menu" <- function(){ OS <- .Platform$OS.type GUI <- .Platform$GUI if (!(OS == "windows" & GUI == "Rgui")) return("So...
2003 Jun 03
2
winMenuAdd misbehaving?
...soft Windows R users, I am operating Windows 2000 (build2195) with R1.7. It may be pertinent that I am using a dual head screen with the initial RGui filing the entire area of both screens. When starting R I use the .First() function to add menu items to the RGui interface using winMenuAdd() and winMenuAddItem(). The menus do not display until the RGui window is physically manipulated in some way. In R1.6.2 the menus were immediately available without the need to manipulate the window. In all other ways the menus function as previously. Questions; 1) does anyone else get the same behaviour? 2) If this...
2005 Apr 12
1
adding R site search to Rgui
...f RSiteSearch were an entry in the Help menu > in the Windows GUI. One can easily add another menu (and menu item) for this in Rgui: winSearch <- function() { string <- winDialogString("Search string", "") RSiteSearch(string) } winMenuAdd("Search") winMenuAddItem("Search", "Search R Site", "winSearch()") Andy
2004 Aug 13
1
Bug or feature in winMenuDel?
I just noticed the following in Rgui: > winMenuAdd('test') # adds a menu > winMenuAddItem('test', 'item', 'x') # adds an item to it > winMenuDel('test') # deletes the menu... > winMenuItems('test') # but leaves the item behind. item "x" Would anyone object if I changed winMenuDel so that it deleted the menu and a...
2016 Apr 09
0
Arguments to utils:::menuInstallPkgs
..., Jose Claudio Faria wrote: > Dears, > > Is it possible (in any viable way) to pass arguments to the base function > (install.packages I think) using the utils:::menu? No, but why not just call install.packages directly? (If you are using Rgui in Windows, you can add menu items using winMenuAddItem). Duncan Murdoch > For example: > > > utils:::menuInstallPkgs(loc=.libPaths()[2]) > > > utils:::menuInstallLocal(loc=.libPaths()[2]) > > Thanks, > ///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\ > Jose Claudio Faria > Estatistica > UESC/DCET/Brasil > jose...
2016 Apr 09
2
Arguments to utils:::menuInstallPkgs
Dears, Is it possible (in any viable way) to pass arguments to the base function (install.packages I think) using the utils:::menu? For example: > utils:::menuInstallPkgs(loc=.libPaths()[2]) > utils:::menuInstallLocal(loc=.libPaths()[2]) Thanks, ///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\ Jose Claudio Faria Estatistica UESC/DCET/Brasil joseclaudio.faria at gmail.com Telefones:
2006 Mar 31
1
Segfault with too many menu items on Rgui
...Add() now has no limits on the number of menus or items, and names are now limited to 500 (not 50) bytes. However, I can reproducibly get a segfault using this (admittedly silly) example: for( i in 1:5) winMenuAdd(paste("Test", letters[i], sep="")) for(i in 1:5) for(j in 1:24) winMenuAddItem(paste("Test", letters[i], sep=""), as.character(j), paste(rep(letters[j], 4), collapse="")) This is probably almost never a problem, but many Bioconductor packages have vignettes that are added to a 'Vignettes' menu item. If you load enough of these packages y...
2007 May 14
3
RFC: allow packages to advertise vignettes on Windows
...inMenuNames()) winMenuAdd("Vignettes") pkgMenu <- paste("Vignettes", pkgName, sep="/") winMenuAdd(pkgMenu) for (i in vigs) { item <- sub(".pdf", "", basename(i)) winMenuAddItem(pkgMenu, item, paste("shell.exec(\"", as.character(i), "\")", sep = "")) } } ## else ans <- TRUE } else { ans <- FALSE } ans } -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research...
2008 Mar 06
2
CREATE INTERFACE TO SELECT DIFERENT OPTIONS
Hello, I?m spanish student, and I?m making the finish project of computer science. I?m working in R and I need create a Interface which allow me select diferents execution options (similar to a menu). Is posible to create this menu,or interface, with R? or I have create this interface with other language. Thank you very much, and I hope that you understand my english. -- View this message in
2010 Sep 18
1
Check for updates under Windows (Was: a reliable way to check the latest version of R on CRAN?)
Dear R developers, I asked this question in r-help list but have not got a definite solution yet, and I think it might be more appropriate to ask developers or CRAN maintainers directly. Many software packages often have a menu item like "Check for updates" under the "Help" menu, e.g. Filezilla and Firefox, and I believe it is also necessary for R (at least for R GUI under