尝试在Mac上使用REPL R在Sublime中运行R时出错" FileNotFoundError"

时间:2015-10-08 17:24:09

标签: sublimetext3 sublimetext sublimerepl

我正在尝试从Mac上的Sublime Text 3运行R.我已经按照各种在线说明(http://tomschenkjr.net/blog/using-sublime-text-2-for-r/)进行了操作,但无法在我的Mac上运行。我已将用户的SublimeREPL设置配置为:

{
    "default_extend_env": {"PATH": "{PATH};~/Applications/R.app"},
    "show_transferred_text": true
}

并配置Main.sublime菜单文件以包含R.app的路径,如下所示:

"cmd": {"linux": ["R", "--interactive", "--no-readline"],
        "osx": ["~/Applications/R.app", "--interactive", "--no-readline"],
        "windows": ["Rterm.exe", "--ess", "--encoding=$win_cmd_encoding"]},

我尝试过其他路径无济于事。有帮助吗?非常感谢!

enter image description here

1 个答案:

答案 0 :(得分:0)

确保您已安装the latest R

然后,尝试改变 ~/Applications/R.app"/Library/Frameworks/R.framework/Resources/bin/R"

所以,它应该看起来像:

"osx": ["/Library/Frameworks/R.framework/Resources/bin/R", "--interactive", "--no-readline"],