[ESS] Error loading R mode
Ista Zahn
istazahn at gmail.com
Fri Jun 27 15:34:15 CEST 2014
On Fri, Jun 27, 2014 at 8:32 AM, Lucas Holland <hollandlucas at gmail.com> wrote:
> Hello Rainer,
>
> thanks for your reply. I don’t see how that could be the problem in my case as I
>
> i) edited the Makeconf file to explicitly use the Emacs version installed in /Applications (it’s a binary I downloaded, not installed with homebrew)
I don't think that will work: /Applications/Emacs.app is not actualy a
binary, its a directory with the binary located several levels deep.
Furthermore, the original instruction was to load the _uncompiled_
version of ESS. I suggest starting over: delete .emacs.d/ess-dev, and
follow the instructions at
http://ess.r-project.org/Manual/ess.html#Installation, SKIPPING STEPS
2 AND 3.
> ii) have also tried loading ess from source (as explained by Vitalie)
Try again after removing the ess-dev directory and reinstalling as
described above.
If it still doesn't work, try this:
1) delete any previosly installed ess
2) add
(require 'package)
;; Add additional package sources
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
;; Activate package autoloads
(package-initialize)
to your .emacs.d/init.el file
3) restart emacs
4) type 'M-x list-packages
5) search for "ess", place the cursor on that line and press "i" then "x".
This will install ess from the Melpa repository.
Hope this helps,
Ista
>
> and yet I’m still getting the same error message.
>
> If all else fails I might have to try to install emacs via homebrew and use your instructions but I’d really rather avoid doing that as I’m quite happy with my emacs installation otherwise.
>
> Am 27.06.2014 um 14:21 schrieb Rainer M Krug <Rainer at krugs.de>:
>
>> Lucas Holland <hollandlucas at gmail.com> writes:
>>
>>> I’ve added
>>>
>>> (add-to-list 'load-path "/Users/lucas/.emacs.d/ess-dev/lisp")
>>> (load "ess-site.el“)
>>>
>>> to my init.el. I still get the same error when trying to load R-mode though.
>>>
>>> Am 27.06.2014 um 13:40 schrieb Vitalie Spinu <spinuvit at gmail.com>:
>>>
>>>>
>>>> Just do
>>>>
>>>> (add-to-list 'load-path "~/path/to/ESS/lisp/")
>>>> (load "ess-site.el")
>>>>
>>>>
>>>> Vitalie
>>>>
>>>>
>>>>>>> Lucas Holland on Fri, 27 Jun 2014 13:22:44 +0200 wrote:
>>>>
>>>>> Hello Vitalie,
>>>>> thanks for your reply. I’m not aware of the emacs version I used to compile
>>>>> it. I simply followed the instructions, adjusting the Makeconf so it points to
>>>>> the emacs I use (i. e. the one in the /Applications) directory.
>>
>> The give away (you are working on a Mac): I had exactly the same problem
>> and it s=was caused by the fact that OSX was using the built in version
>> of emacs for compilation (22.1.1 in my case on Maverick) and I was using
>> the one installed via homebrew.
>>
>> Solution: This depends how you installed emacs, but you effectively have
>> to make surte, that make is using the new emacs. Easiest probably:
>> rename the original emacs in /usr/bin to e.g. emacs.org and the
>> emacsclient to emacsclient.org.
>>
>> Now, itf your (assuming) homebrew installed emacs is in your path, it
>> will be used for compilation.
>>
>> Cheers,
>>
>> Rainer
>>
>>>>
>>>>> How do I go about loading ESS from source directly (sorry, I’m quite new to the world of emacs)?
>>>>
>>>>> Thanks again!
>>>>
>>>>> Lucas
>>>>> Am 27.06.2014 um 13:16 schrieb Vitalie Spinu <spinuvit at gmail.com>:
>>>>
>>>>>>
>>>>>> This is one of those gost errors that people report
>>>>>> sometimes. with-silent-modifications is there but the errors says it is
>>>>>> not. It is usually caused by some sort of mismatch of emacs version
>>>>>> during compilations. Have you compiled your ess with an older version of
>>>>>> emacs? Try loading ESS from sourse directly.
>>>>>>
>>>>>> Vitalie
>>>>>>
>>>>>>>>> Lucas Holland on Fri, 27 Jun 2014 12:34:13 +0200 wrote:
>>>>>>
>>>>>>> Hello,
>>>>>>
>>>>>>> I’ve just installed the latest version of ESS from github (14.05, the
>>>>>>> same problem occurs with the version currently available for download
>>>>>>> on the website).
>>>>>>
>>>>>>> However when I try to switch into R mode via M-x R-mode I get an
>>>>>>> arrow and it seems to go into S mode instead. Here’s the error I get:
>>>>>>
>>>>>>> ess-bp-recreate-all: Invalid function: with-silent-modifications
>>>>>>
>>>>>>> C-h f with-silent-modifications gives me
>>>>>>
>>>>>>> with-silent-modifications is a Lisp macro in `subr.el'.
>>>>>>
>>>>>>> and some description text.
>>>>>>
>>>>>>> I’m running the following Emacs version:
>>>>>>
>>>>>>> GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2013-03-13 on bob.porkrind.org
>>>>>>
>>>>>>> I’ve seen this error being asked about before but in that case using
>>>>>>> the latest ess version seems to have fixed it whereas that’s not the
>>>>>>> case for me.
>>>>>>
>>>>>>> Thanks!
>>>>>>
>>>>>>> ______________________________________________
>>>>>>> ESS-help at r-project.org mailing list
>>>>>>> https://stat.ethz.ch/mailman/listinfo/ess-help
>>>>
>>>
>>> ______________________________________________
>>> ESS-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/ess-help
>>
>> --
>> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)
>>
>> Centre of Excellence for Invasion Biology
>> Stellenbosch University
>> South Africa
>>
>> Tel : +33 - (0)9 53 10 27 44
>> Cell: +33 - (0)6 85 62 59 98
>> Fax : +33 - (0)9 58 10 27 44
>>
>> Fax (D): +49 - (0)3 21 21 25 22 44
>>
>> email: Rainer at krugs.de
>>
>> Skype: RMkrug
>>
>> PGP: 0x0F52F982
>
>
> [[alternative HTML version deleted]]
>
>
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
More information about the ESS-help
mailing list