ESS (Emacs Speaks Statistics) をgitからインストール

  1. cd ~/bin/
  2. git clone https://github.com/emacs-ess/ESS.git
  3. cd ess
  4. make
  5. ~/.emacsに以下のように記述*1

(add-to-list 'load-path "~/bin/ess/lisp")
(load "ess-site")

以上でemacs上でM-RでRを起動できるようになる*2

*1:~/.emacs.d/init.elに書いておくのが現在の正しいお作法かもしれません。でも矢野がemacs使い始めた25年前にはそんな便利な仕組みはなかったので、今でも~/.emacsを使っています・・・

*2:OS Xの場合:makeでwgetを使う必要があるので、homebrewの場合はbrew install wgetしておくこと。