Mac,R和OS X el Capitan上的Emacs [英] Emacs on Mac, R, and OS X el Capitan

查看:121
本文介绍了Mac,R和OS X el Capitan上的Emacs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac系统上使用Emacs和/或Aquamacs来编辑R,latex和html代码。将OS X升级到el Capitan后,R停止工作(搜索程序:没有这样的文件或目录,R)。我想知道有没有人遇到同样的问题,并找到解决方案。

解决方案

这是我做的,它解决了这个问题。


  1. 重新安装R(撰写本文时的最新版本为3.2.4)

  2. 在.emacs中的
  3. include(setq exec-path(cons/ usr / local / binexec-path))。
    / usr / local / bin是命令行R软链接的位置。

当然,如果R命令是在/ usr / local / bin中找不到其他地方,您应该在步骤2中更改路径。


I use Emacs and/or Aquamacs on a Mac system to edit the R, latex, and html code. After upgrading OS X to el Capitan, R stopped working (searching for program: no such file or directory, R). I was wondering if anybody encountered the same problem and found the solution.

解决方案

This is what I did and it solved the problem.

  1. re-install R (the latest version at the time of writing this post is 3.2.4)
  2. include (setq exec-path (cons "/usr/local/bin" exec-path)) in the .emacs. /usr/local/bin is where the command line R is soft linked.

Of course if the R command is not found in /usr/local/bin but somewhere else, you should change the path in step 2.

这篇关于Mac,R和OS X el Capitan上的Emacs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆