简体   繁体   English

如何在Mac OS X上安装ESS

[英]How to install ESS on Mac OS X

I am trying to use Emacs instead of R on my Mac machine. 我正在尝试在Mac机器上使用Emacs而不是R。 I've been looking online how to install ESS so that I can use R in Emacs. 我一直在网上寻找如何安装ESS,以便可以在Emacs中使用R。 But I am really confused by the installation manual which says, 但是我对安装手册感到非常困惑,它说:

Extract all the files from ess-VERSION.tgz into the directory PREFIX/site-lisp where PREFIX is appropriate for GNU Emacs on your system; 将所有文件从ess-VERSION.tgz提取到目录PREFIX / site-lisp中,其中PREFIX适用于系统上的GNU Emacs; PREFIX will most likely be either /usr/share/emacs or /usr/local/share/emacs (on Mac OS X, PREFIX will most likely be something like /Applications/Emacs.app/Contents/Resources): PREFIX很可能是/ usr / share / emacs或/ usr / local / share / emacs(在Mac OS X上,PREFIX很可能是/Applications/Emacs.app/Contents/Resources):

Where do I find this: /Applications/Emacs.app/Contents/Resources. 我在哪里找到此文件:/Applications/Emacs.app/Contents/Resources。 I looked at Applications folder and it only contains the application file emacs. 我查看了Applications文件夹,它仅包含应用程序文件emacs。

Mac applications are bundled in folders with the .app extension. Mac应用程序捆绑在扩展名为.app的文件夹中。 These folders are handled in a special manner by the finder which hides their contents. 这些文件夹由查找程序以特殊方式处理,查找程序将其内容隐藏起来。 (See https://superuser.com/questions/78176/how-do-mac-app-execution-files-work for info). (有关信息,请参见https://superuser.com/questions/78176/how-do-mac-app-execution-files-work )。 Specifically in you case /Applications/Emacs.app is really a folder. 特别是在您的情况下,/ /Applications/Emacs.app实际上是一个文件夹。 To get to its contents right click on it and choose "Show package contents". 要获取其内容,请右键单击它,然后选择“显示包装内容”。 You will be able to get to /Applications/Emacs.app/Contents/Resources from there. 您将可以从那里到达/Applications/Emacs.app/Contents/Resources

The ESS documentation recommends using a modified version of Emacs, which includes ESS and a few other packages. ESS 文档建议使用Emacs的修改版,其中包括ESS和其他一些软件包。 It is available for Windows and Mac . 它适用于Windows和Mac

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM