Running an R script using a Windows shortcut

后端 未结 4 1803
星月不相逢
星月不相逢 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:11

    Have you tried using the RScript command? I don't know how it works on Windows, but in Linux I would do something like:

    Rscript --vanilla -e 'source("abc.R")'
    

提交回复
热议问题