我的問題是我想從ST2運行帶R 3.0.2的R腳本。更改由Sublime Text 2打開的R版本 - 在Windows中
當我安裝了ST2時,我使用增強R包對其進行了配置,以便能夠從ST2運行R腳本。完成的連接使用R 2.15.2。現在我想從ST2自動運行R 3.0.2。我沒有設法使它的工作原理是試圖修改偏好>包設置>增強R>設置默認Sublime Text 2 and R建議在設置用戶修改後的腳本:
"default_extend_env": {"PATH": "{PATH};C:\\Program Files\\R\\R-3.0.2\\bin\\i386"}
和設置的默認腳本(我複製了除了我使用Windows):
"osx" : {
// R/R64/Terminal/iTerm
"App" : "R"
// path to Rscript binary
// "Rscript" : "/usr/bin/Rscript",
},
"windows" : {
// R32/R64
"App" : "R64"
// path to R binary
// "R32" : "C:\\Program Files\\R\\R-3.0.2\\bin\\i386\\Rgui.exe",
// "R64" : "C:\\Program Files\\R\\R-3.0.2\\bin\\x64\\Rgui.exe",
// path to Rscript binary
// "Rscript" : "C:\\Program Files\\R\\R-3.0.2\\bin\\x64\\Rscript.exe",
},
"linux": {
// tmux/screen
"App" : "tmux"
// path
// "tmux" : "tmux",
// "screen" : "screen",
// path to Rscript binary
// "Rscript" : "",
},
// auto advance lines after sending command
"r_auto_advance": true,
// auto completions
"r_auto_completions": true,
// a list of packages which functions will show in the status bar
// "default_pkgs": ["base", "graphics", "grDevices", "methods", "stats", "utils"],
// a list of extensions
"extensions": ["r", "R", "s", "S", ".Rprofile"]
// Allows for '.' in R object names
// "word_separators": "/\\()\"‘-:,;[email protected]#$%^&*|+=[]{}`~?"
有沒有人可以幫助我找到辦法呢? 感謝
您是否已將'cmd'和路徑設置爲指向R3安裝? –
你的意思是說,在控制面板中,我應該在「環境變量」中添加一個新路徑?或者你的意思是直接在ST2? – user3016665
直接在ST2中。將其指向R-3可執行文件,而不是指向R-2可執行文件。 –