[ESS] Failing to load r-autoyas

Fernando Mayer fernandomayer at gmail.com
Sat Mar 24 07:20:34 CET 2012


Sven,

I'm using the latest version from github now. By the way, Matthew send this line

(add hook 'ess-mode-hook 'r-autoyas-ess-activate)

which should be

(add-hook 'ess-mode-hook 'r-autoyas-ess-activate)

I've noticed this just a while ago. I re-tested everything with this
line fixed but still doesn't work. (You guys may want to fix this in
the github README.org.)

The

M-x r-autoyas-expand

also didin't have any effect, except for this information

Making completion list...

in the *Messages* buffer. TAB continues not working. I'm thinking this
may be a problem specific to my Ubuntu box (?), but can't imagine what
could be.

Thanks,

---
Fernando Mayer
Universidade Federal de Santa Catarina - UFSC
Departamento de Ecologia e Zoologia - ECZ/CCB
URL: http://sites.google.com/site/fernandomayer
e-mail: fernandomayer [@] gmail.com



On Sat, Mar 24, 2012 at 2:50 AM, Sven Hartenstein
<lists at svenhartenstein.de> wrote:
> Fernando,
>
> first, you may want to use the more developed version of r-autoyas
> from Matthew which you find here:
> https://github.com/mlf176f2/r-autoyas.el
>
> (I've now removed the old version from my website and linked to the
> above.)
>
> Then, if r-autoyas appears as loaded, please try
>
>  M-x r-autoyas-expand
>
> while your cursor is behind a function name and see whether that
> works. If it works, then maybe your TAB key is busy doing something
> else.
>
> Sven
>
>
> Am 24.03.2012 05:18, schrieb Fernando Mayer:
>
>> Matthew,
>>
>> even with that line it didn't work. I tried it again with all the four
>> alternatives mentioned earlier, and still nothing.
>>
>> I've also put this line
>>
>> (load "~/.emacs.d/r-autoyas")
>>
>> to make sure r-autoyas.el was being explicitly loaded. Now in the
>> *Messages* buffer it appears as loaded, yet with no result.
>>
>> Let me know if there is something else I could test here.
>>
>> Thanks,
>>
>> ---
>> Fernando Mayer
>> Universidade Federal de Santa Catarina - UFSC
>> Departamento de Ecologia e Zoologia - ECZ/CCB
>> URL: http://sites.google.com/site/fernandomayer
>> e-mail: fernandomayer [@] gmail.com
>>
>>
>>
>> On Fri, Mar 23, 2012 at 9:19 PM, Matthew Fidler
>> <matthew.fidler at gmail.com>  wrote:
>>>
>>> Fernando,
>>>
>>> I forgot to update the github readme, but I believe you need to add:
>>>
>>> (add hook 'ess-mode-hook 'r-autoyas-ess-activate)
>>>
>>> as to your .emacs file.  I was told by some package maintainers that it
>>> is
>>> bad form to automaticailly load features.
>>>
>>> Please tell me if that works.  I have opened an issue at the github repo
>>>
>>> https://github.com/mlf176f2/r-autoyas.el/issues/2
>>>
>>> Matt.
>>>
>>> On Fri, Mar 23, 2012 at 6:28 PM, Fernando Mayer<fernandomayer at gmail.com>
>>> wrote:
>>>>
>>>>
>>>> Hi,
>>>>
>>>> I was trying to use r-autoyas [1], but was not very succesfull. I've
>>>> downloaded r-autoyas.el from here [2] and put it in my ~/emacs.d/ . In
>>>> my .emacs I have
>>>>
>>>> (add-to-list 'load-path "~/.emacs.d/")
>>>> (require 'ess-site)
>>>> (require 'r-autoyas)
>>>>
>>>> but when I open emacs/ess and R and try something like
>>>>
>>>> rnorm(<TAB>
>>>>
>>>> nothing happens, not even a warning or error message from buffer. In
>>>> the *Messages* buffer I also don't see any call to r-autoyas.
>>>>
>>>> Some other things I've tried (not cumulatively):
>>>>
>>>> 1) Put r-autoyas.el in /etc/emacs/site-start.d/ (since I'm sure this
>>>> is in the load-path)
>>>> 2) Put this in .emacs:
>>>>
>>>> (yas/initialize)
>>>> (yas/load-directory "/usr/share/emacs/site-lisp/yasnippet/snippets")
>>>>
>>>> 3) I've yanked all the content of r-autoyas.el into my .emacs
>>>> 4) M-x load-file<r-autoyas.el>
>>>>
>>>> In neither of them it worked.
>>>>
>>>> This may be something basic I'm missing since I'm not a Lisp expert,
>>>> but I can't figure out what is going wrong here.
>>>>
>>>> I'm using Ubuntu 11.10 with:
>>>>
>>>> R 2.14.2 (compiled from source)
>>>> ESS 5.14-1oneiric0 (installed via apt from a CRAN mirror)
>>>> Emacs 23.3.1 (via apt from Ubuntu repositories)
>>>> yasnippet 0.6.1c-1 (via apt from Ubuntu)
>>>> r-autoyas.el 0.18 (via [2])
>>>>
>>>> [1] http://www.emacswiki.org/emacs/ESSr-autoyas
>>>> [2] http://www.svenhartenstein.de/uploads/r-autoyas.el
>>>>
>>>>
>>>> Thanks in advance for any suggestion,
>>>>
>>>>
>>>> ---
>>>> Fernando Mayer
>>>> Universidade Federal de Santa Catarina - UFSC
>>>> Departamento de Ecologia e Zoologia - ECZ/CCB
>>>> URL: http://sites.google.com/site/fernandomayer
>>>> e-mail: fernandomayer [@] gmail.com
>>>>
>>>> ______________________________________________
>>>> 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
>>
>
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list