[ESS] Aquamacs cannot find file at startup

Steven McKinney @mck|nney @end|ng |rom bccrc@c@
Fri Sep 22 00:44:48 CEST 2017


Christian

Use an absolute path such as

(load "/Users/hoffmannc/elisp/vendor/ess/lisp/ess-site.el")

if that is indeed where your elisp directory is located.

Depending on what user ID is the owner of which process at load time (it might be root) the tilde could resolve to some other directory than your default user directory.

e.g.  ~/elisp/vendor/ess/lisp/ess-site.el might resolve to /root/elisp/vendor/ess/lisp/ess-site.el

Steven McKinney



> -----Original Message-----
> From: ESS-help [mailto:ess-help-bounces using r-project.org] On Behalf Of Martin
> Maechler
> Sent: September-20-17 12:54 AM
> To: Christian
> Cc: ESS help
> Subject: Re: [ESS] Aquamacs cannot find file at startup
> 
> >>>>> Christian  <christian using echoffmann.ch>
> >>>>>     on Mon, 18 Sep 2017 18:34:19 +0200 writes:
> 
>     > Hi,
>     > Starting Aquamacs 3.3 on MacbookPro MacOS 10.12.6, I get an error
>     > --------
>     > Warning (initialization): An error occurred while loading
>     > ‘/Users/hoffmannc/.emacs’:
> 
>     > File error: Cannot open load file, No such file or directory,
>     > ~/elisp/vendor/ess/lisp/ess-site.el
>     > -------
> 
>     > My /Users/hoffmannc/.emacs looks like this
>     > _________________
>     > ;; ESS: Emacs Speaks Statistics
>     > (load "~/elisp/vendor/ess/lisp/ess-site.el")
> 
> as nobody else mentioned the obvious:
> You explicitly load a file above, "~/elisp/...../ess-site.el",
> and the emacs error message says
>     'No such file or directory'
> 
> I cannot imagine that such an error message would not be
> correct.
> 
> ==> Please do load a version of 'ess-site.el' that exists  ...
> 
> Mit herzlichem Gruess uf Huusen am Albis,
> Martin
> 
>     > ;; Use shift-enter to split window & launch R (if not running),
> execute
>     > highlighted
>     > ;; 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 ()
>     > (interactive)
>     > (if (not (member "*R*" (mapcar (function buffer-name) (buffer-
> list))))
>     > (progn
>     > (delete-other-windows)
>     > (setq w1 (selected-window))
>     > (setq w1name (buffer-name))
>     > (setq w2 (split-window w1 nil t))
>     > (R)
>     > (set-window-buffer w2 "*R*")
>     > (set-window-buffer w1 w1name))))
>     > (defun my-ess-eval ()
>     > (interactive)
>     > (my-ess-start-R)
>     > (if (and transient-mark-mode mark-active)
>     > (call-interactively 'ess-eval-region)
>     > (call-interactively 'ess-eval-line-and-step)))
>     > (add-hook 'ess-mode-hook
>     > '(lambda()
>     > (local-set-key [(shift return)] 'my-ess-eval)))
>     > (add-hook 'inferior-ess-mode-hook
>     > '(lambda()
>     > (local-set-key [C-up]
>     > 'comint-previous-matching-input-from-input)
>     > (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
>     > --
>     > Christian Hoffmann
>     > Rigiblickstrasse 15b
>     > CH-8915 Hausen am Albis
>     > Switzerland
>     > Telefon +41-(0)44-7640853
> 
>     > ______________________________________________
>     > ESS-help using r-project.org mailing list
>     > https://stat.ethz.ch/mailman/listinfo/ess-help
> 
> ______________________________________________
> ESS-help using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help


More information about the ESS-help mailing list