search for: winmenuadd

Displaying 20 results from an estimated 24 matches for "winmenuadd".

2004 Apr 16
2
Windows startup menu display problem in 1.9.0 (PR#6783)
Full_Name: Brian J. Smith Version: 1.9.0 OS: WinXp Submission from: (NULL) (129.255.217.48) WinXP; R 1.9.0 running under Rgui.exe. winMenuAdd calls via my .Rprofile file do not seem to work and, instead, result in the following error message after the R GUI starts: Error in eval(expr, envir, enclos) : couldn't find function "winMenuAdd" Any subsequent calls to winMenuAdd from the R console GUI window work fine. The sa...
2004 Apr 21
1
Error with 1.9.0 - winMenuAdd not usable in .Rprofile
...Transportation Brian.J.GREGOR at odot.state.or.us (503) 986-4120 > -----Original Message----- > From: Fan [mailto:xiao.gang.fan1 at libertysurf.fr] > Sent: Wednesday, April 21, 2004 3:06 PM > To: Duncan Murdoch > Cc: r-help at stat.math.ethz.ch > Subject: [R] Error with 1.9.0 - winMenuAdd not usable in .Rprofile > > > With the R 1.9.0 version (Windows patched binary), I've got a strange > behaviour: the function winMenuAdd is no longer usable in the start up > file .Rprofile, the following error message was given: > > Error in try(winMenuAdd("test&qu...
2008 Jul 06
1
Windows Only: winMenuAdd() problem
...lar to my particular Windows version/setup. So any help would be appreciated. First the problem, then the info. The following code can be cut and pasted into your R session ############################# ### start R ### create a plot on device 2 (which can be determined by dev.cur()) plot(1:10) winMenuAdd("$Graph2Main/newmenu") ## the menu has been added to the graphics window #### now close all graphics devices ## (can also be done by pointing and clicking on the Windows close icon) graphics.off() ## Now repeat plot(1:10) winMenuAdd("$Graph2Main/newmenu") ## No menu ha...
2003 Jun 03
2
winMenuAdd misbehaving?
Microsoft 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 b...
2006 Mar 20
1
Platform independent dialogs & menus?
Dear list mates, Are {utils} dialog box functions, and winMenuAdd... functions used to change (e.g. Console) menus, platform dependent? I'm writing a script loaded with .First that provides first time users in a lab course with the ability to select, load, and change between what I called a 'session' (more specific save that focuses on the session o...
2004 Apr 16
1
Pb on startup with R1.9.0
I'm using Rprofile file on R1.9.0 startup and inside I'm loading a personal Library which uses winMenuAdd() and I've got this error : Error in eval(expr, envir, enclos) : couldn't find function "winMenuAdd" I hadn't this problem with others R versions. What Can I do now to avoid that? I'm using R1.9.0 under Win98. [[alternative HTML version deleted]]
2004 May 01
1
RWinEdt, R.profile and version 1.9.0
...if ((nf=="y")|(nf=="Y")|(nf=="")) {library(RWinEdt)} rm(nf) When run at start, this prompts: Loading required package: stats Load editor?(y/n default = y): y Loading required package: SWinRegistry Error in eval(expr, envir, enclos) : couldn't find function "winMenuAdd" and the WinEdt is not started. However, if I run > library(RWinEdt) from the gui.exe interface, everything goes well. How can I manage with this "Error in eval(expr, envir, enclos) : couldn't find function "winMenuAdd" generated by a call to library(RWinEdt) in the...
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(&quo...
2006 Mar 31
1
Segfault with too many menu items on Rgui
Hi all, In the CHANGES file for R-2.3.0alpha, there is the following statement: winMenuAdd() 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) win...
2003 Apr 22
2
Weird Windows startup menu display problem in 1.7.0 (PR#2817)
Folks: Winnt; R1.7.0 (freshly installed) running under Rgui.exe.,MDI=yes. The following is repeatable: On startup, in my Rprofile.site file, I use winMenuAdd() etc. to install some user menus. However, they do not appear when R GUI window opens. If I minimize and restore the window, the added menus now are present. The exact same procedure under 1.6.2 with exactly the same Rprofile.site and Rconsole files works fine. Have fun. Cheers, Bert Gunter Bi...
2007 May 14
3
RFC: allow packages to advertise vignettes on Windows
...me)) } else { vigMtrx <- .readRDS(vigFile) vigs <- file.path(.find.package(pkgName), "doc", vigMtrx[,"PDF"]) names(vigs) <- vigMtrx[,"Title"] if (!"Vignettes" %in% winMenuNames()) winMenuAdd("Vignettes") pkgMenu <- paste("Vignettes", pkgName, sep="/") winMenuAdd(pkgMenu) for (i in vigs) { item <- sub(".pdf", "", basename(i)) winMenuAddItem(pkgMenu, item, paste(&qu...
2004 May 23
0
Re: Windows versus Unix packages in CRAN ...
...simply ... to remove the stuff related to MS Win from zzz.R; > in partricular the lines after if( .... ) to clear your message. > As you can see, the info relates to the WinMenu under MS Win. as Janusz Kawczak suggests, and that is to *wrap* the troublesome code in if (exists("winMenuAdd")) { ... original code goes here ... } The resulting code should then work *both* in Windows *and* in Unix. The documentation in the FAQ *does* provide quite a clear indication that this is something to watch out for; I found it fairly easy to find and work around this b...
2005 Apr 12
1
adding R site search to Rgui
...y > > It would be nice if 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
2009 Aug 26
1
Scripting - sort of
Dear R-ians: I'm running R2.9.2 on a 6 year old Windows XP DELL with 2 Gig RAM and a 3MHz Pentium 4 chip. I've written a package using the User Menus Under Windows commands (winMenuAdd, etc). It works very well. I have 6 test cases and running any one of them requires many selections form the menus and some keyboard entry, and it takes me hours to exercise them all to see that my changes to the R code produced no unexpected results. Is there a way to record my mouse mo...
2010 Feb 12
1
Selective load of .First() function just for Rgui.exe
...t <- function() {...} in the Rprofile.site file. Through .First() I'm adding several menus to the GUI to access several functions I've been developing for own use. However, I also need to launch R scripts silently in a batch way, and in this case I get the error message: "Error in winMenuAdd(menuname, NULL, NULL): Menu functions can only be used in the GUI" Do you know about about a way to selectively read the .First() function just for Rgui.exe, but not for call to R.exe? Thanks and best regards, Javier ---
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 i...
2007 May 16
2
'attach workspace' on R console File menu
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
2005 Mar 30
4
how i can get input from "user input"
Hello, Could you please tell me how i can get an input from the user in R? C-Ming Mar 29, 2005 --------------------------------- [[alternative HTML version deleted]]
2004 Aug 05
0
Request for new Windoze GUI Widget
Folks: I have found R's fewWindoze GUI Widgets (like winDialog, choose.files,winMenuAdd etc.) to be quite useful in building simple but functional interfaces (I hesitate to call them GUI's) for one-off applications for non-R users. It's quite easy for me to write statistical "solutions" in R, slap on a little GUI that allows users access to the functionality, and the...
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