我不知道如何在windows命令终端中启动R。在我键入R,rcmd,start R之后,我运行cmd打开命令提示符,并尝试了我找到的其他方法,但我遇到了错误:'R' is not recognized as an internal or external command。我已经安装了R,我的桌面上有一个快捷方式,我可以将它用作RGui,但我看到人们在命令行中使用R的方式类似于python。
我有32位的windows7。
发布于 2013-02-04 04:38:40
如果它在您的路径上,请键入:
R.exe要让它在您的路径上运行:
开始/计算机/系统属性/高级系统设置/环境变量/在下面的框中选择路径/编辑
然后添加R的位置,我的位置是C:\R\R-2.15.1\bin,但默认情况下它可能在程序文件中。
下面是我的变量值:
C:\R\R-2.15.1\bin\i386;C:\Rtools\bin;C:\Rtools\perl\bin;C:\Rtools\gcc-4.6.3\bin;C:\Rtools\MinGW\bin;C:\R\bin;C:\Perl64\bin; C:\Program Files (x86)\MiKTeX 2.8\miktex\bin;C:\Program Files (x86)\HP SimplePass 2012\x64;C:\Program Files (x86)\HP SimplePass 2012\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\12.0\DLLShared\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Intel\Services\IPT\;C:\Program Files (x86)\Pandoc\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\gs\gs9.06\bin;C:\Program Files (x86)\LibreOffice 3.5\URE\bin;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\; C:\Users\trinker\rubytools\bin然后单击OK三次。现在启动一个新的命令提示符,应该可以访问R.exe。
https://stackoverflow.com/questions/14677005
复制相似问题