从Windows命令提示符交互式运行R [英] Running R interactively from windows command prompt
问题描述
我需要从win中的命令提示符交互式启动R(以便能够显示一个图)。
任何想法如何做到这一点?
I need to launch R interactively (to be able to show a plot) from command prompt in win. Any idea how I can do this?
谢谢。
推荐答案
为您的系统输入正确的版本:
Type the right version of this for your system:
C:\path\to\R\bin\R
完整路径可以从R的安装位置获得,从R快捷方式。在我的机器上通过右键单击 - 属性(右键单击任务栏项目中的快捷方式在Win 7)和目标在我的机器是:
That full path can be gotten from the installation location of R, or just from the R shortcut. On my machine by right-click - Properties (right click the shortcut within the task bar item on Win 7) and in Target on my machine is:
C:\inst\R\R\bin\x64\Rgui.exe
所以,对我来说是
C:\inst\R\R\bin\x64\R
或
C:\inst\R\R\bin\i386\R
,甚至更适合当前版本和旧版本。
or even more generally for current and older versions
C:\inst\R\R\bin\R
启动R.
我倾向于总是安装R到这个位置,所以我把我最常用的位置(bin / x64)在我的路径,我可以从任何地方键入R。
I tend to always install R to this location, so I put my most used location (bin/x64) in my Path and I can type "R" from anywhere.
Windows上的路径是以分号分隔的目录列表,在高级(系统设置),环境变量和系统或用户变量中的我的计算机上的属性
The Path on Windows is a semi-colon separated list of directories modified with Properties on My Computer under Advanced (System Settings), Environment Variables and within System or User variables.
这篇关于从Windows命令提示符交互式运行R的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!