Dear R2008, In Windows 2000, I used the following shell extension to allow right-click rgui start in a directory (assuming rgui.exe is on the path: ----- REGEDIT4 [HKEY_CLASSES_ROOT\Directory\shell\Run R] [HKEY_CLASSES_ROOT\Directory\shell\Run R\command] @="Rgui.exe --no-restore --no-save --internet2" ---- I switched to Vista this year. For reasons I don't understand, I have to give the full path now, even if rgui is on the path. However, the solution below does not really work, getwd() is always in \windows\system32. I tried several cmd.exe "..." variations, without success (strangled by "\""\"?) And a nasty feature of Vista is the long delay of 19 seconds until a command box comes up on my computer. To avoid RTFMs: I know how to do this with setwd(). Dieter ------ Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\Run R] [HKEY_CLASSES_ROOT\Directory\shell\Run R\command] @="\"C:\\Program Files\\R\\R-2.6.0\\bin\\Rgui.exe\" --internet2 --no-save --no-restore"
On Jan 2, 2008 9:49 AM, Dieter Menne <dieter.menne at menne-biomed.de> wrote:> Dear R2008, > > In Windows 2000, I used the following shell extension to allow right-click > rgui start in a directory (assuming rgui.exe is on the path: > > ----- > REGEDIT4 > > > [HKEY_CLASSES_ROOT\Directory\shell\Run R] > > > [HKEY_CLASSES_ROOT\Directory\shell\Run R\command] > @="Rgui.exe --no-restore --no-save --internet2" > ---- > > I switched to Vista this year. For reasons I don't understand, I have to > give the full path now, even if rgui is on the path. However, the solutionTry this batch file which is in the devel svn repository of batchfiles: http://batchfiles.googlecode.com/svn/trunk/RguiStart.bat (Also see: http://batchfiles.googlecode.com) Given a directory specified in argument 1 it will find R in the registry (and look in a few other places if not found there) and start Rgui.exe in specified directory. This has the additional benefit that when you upgrade to a new version of R you don't have to change anything.> below does not really work, getwd() is always in \windows\system32. I tried > several cmd.exe "..." variations, without success (strangled by "\""\"?) And > a nasty feature of Vista is the long delay of 19 seconds until a command box > comes up on my computer. >How are you starting up the command line? If I position myself to the right side of the Windows Explorer window in Vista and press Shift-RightClick and then choose Open Command Window Here then the command window comes up instantaneously on my system -- there is no discernable delay at all.> To avoid RTFMs: I know how to do this with setwd(). > > Dieter > > ------ > Windows Registry Editor Version 5.00 > > > [HKEY_CLASSES_ROOT\Directory\shell\Run R] > > [HKEY_CLASSES_ROOT\Directory\shell\Run R\command] > @="\"C:\\Program Files\\R\\R-2.6.0\\bin\\Rgui.exe\" --internet2 --no-save > --no-restore"
Gabor Grothendieck <ggrothendieck <at> gmail.com> writes:> How are you starting up the command line? If I position myself to the right > side of the Windows Explorer window in Vista and press Shift-RightClick and > then choose Open Command Window Here then the command window > comes up instantaneously on my system -- there is no discernable delay > at all.Same method for me (I only made it always visible to avoid the Shift). 19 Seconds on the first call, 11 Second later on a brand-new system. This is Click-To-Visible time, processing starts earlier, when I start Sweave with short files it has finished processing before the box is on screen. I normally start from scratch, so clicking .Rdata is not an option. I have given up the shell approach, using AutoHotKey instead, which is convenient since it picks the currently selected directory from Explorer and can also be used to start Sweave-make. #Include ExplorerWindowControl.ahk ; << Defines Shellfolder ; This overrides Start/R which I never use #r::Run,rgui.exe --no-restore --no-save --internet2, % ShellFolder() Dieter
Seemingly Similar Threads
- Reshape set operations?
- regshell only goes to HKEY_CLASSES_ROOT
- Fun Wine Project -- Configure Some Default Registry Entries
- Starting a Linux application for a windows file in wine
- winefile/explorer hardcoded ? HKEY_CLASSES_ROOT\Folder\shell\open\command ignored