Running an R script using a Windows shortcut

后端 未结 4 1802
星月不相逢
星月不相逢 2020-12-16 21:14

I am trying to create an icon on my desktop (Windows OS). By clicking on this icon, an R script will be executed, which launches a GUI application (gWidgets).

4条回答
  •  青春惊慌失措
    2020-12-16 22:07

    A basic version of this I've done in Windows 7 is;

    1. locate RScript.exe (e.g. C:\Users\USERNAME\Documents\R\R-3.3.2\bin\x64\RScript.exe)
    2. right click and select 'Pin to Taskbar'

    The R icon should appear on the taskbar at the bottom of your screen

    1. find your script (e.g. C:\Users\USERNAME\Documents\MyScript.R) and drag this onto the R icon on the taskbar
    2. right-click the icon, 'MyScript' should be pinned there.
    3. click 'MyScript' to run the script.

提交回复
热议问题