[ESS] Aquamacs cannot find file at startup

Christian christian at echoffmann.ch
Mon Sep 18 18:34:19 CEST 2017

Starting Aquamacs 3.3 on MacbookPro MacOS 10.12.6, I get an error
Warning (initialization): An error occurred while loading 

File error: Cannot open load file, No such file or directory, 

My /Users/hoffmannc/.emacs looks like this
;; ESS: Emacs Speaks Statistics
(load "~/elisp/vendor/ess/lisp/ess-site.el")

;; Use shift-enter to split window & launch R (if not running), execute 
;; region (if R running & area highlighted), or execute current line
;; (and move to next line, skipping comments). Nice.
;; See http://www.emacswiki.org/emacs/EmacsSpeaksStatistics,
;; FelipeCsaszar. Adapted to split vertically instead of
;; horizontally.

(setq ess-ask-for-ess-directory nil)
   (setq ess-local-process-name "R")
   (setq ansi-color-for-comint-mode 'filter)
   (setq comint-prompt-read-only t)
   (setq comint-scroll-to-bottom-on-input t)
   (setq comint-scroll-to-bottom-on-output t)
   (setq comint-move-point-for-output t)
   (defun my-ess-start-R ()
     (if (not (member "*R*" (mapcar (function buffer-name) (buffer-list))))
     (setq w1 (selected-window))
     (setq w1name (buffer-name))
     (setq w2 (split-window w1 nil t))
     (set-window-buffer w2 "*R*")
     (set-window-buffer w1 w1name))))
   (defun my-ess-eval ()
     (if (and transient-mark-mode mark-active)
     (call-interactively 'ess-eval-region)
       (call-interactively 'ess-eval-line-and-step)))
   (add-hook 'ess-mode-hook
            (local-set-key [(shift return)] 'my-ess-eval)))
   (add-hook 'inferior-ess-mode-hook
            (local-set-key [C-up] 
            (local-set-key [C-down] 'comint-next-input)))
   (require 'ess-site)
..and the last line seems to cause the error, as can be seen by C-x C-e.
How can I correct this error?

Thanks for any hints.
Christian Hoffmann
Rigiblickstrasse 15b
CH-8915 Hausen am Albis
Telefon +41-(0)44-7640853

More information about the ESS-help mailing list