Skip to content
Prev 206303 / 398503 Next

Windows Shell: R Gui Here

Some years ago I published the reg string here to start RGui in a selected
Windows directory via right key click without keeping a cmd window open.
That string no longer works in Vista/Windows 7. Below is the alternative. It
assumes that rgui is on your path, or that you have Gabor's rbatch installed
and on you path.

http://batchfiles.googlecode.com

If you must use an explicit path to RGui, use the short path name, or find
out how to escape double quotes in registry/shell. (\ or \\ or """ does not
work).

Dieter


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\RGui]
@="R Gui here"

[HKEY_CLASSES_ROOT\Folder\shell\RGui\command]
@="cmd.exe /c \"pushd %L &&start rgui --no-restore --no-save\""