[ESS] completion using ess-remote

Mathieu Basille basille at ase-research.org
Thu Nov 10 14:40:33 CET 2011

Dear François and Rodney,

For me, the problem is not with ESS-remote, but with the use of screen. 
Here is what I can reproduce:

- On a Debian Squeeze laptop, using Emacs 23.2+1-7 and ESS 5.11-1 (and R 
2.13.2-1~squeezecran.0 for what is worth);

- If I connect to a remote server running Debian Wheezy, and R 2.13.2-1 
(and Emacs 23.3+1-1.1 and ESS 5.14-1 for what is worth);

- With a simplified .emacs as:

(require 'ess-site)

- If I'm not using screen but a direct R process within the terminal, I 
have access to completion.

- If I use a screen session, I cannot anymore, with the same (I think) 
messages as you:

 > as.character(getRversion() >= "2.7.0")
[1] "TRUE"
 > rcompgen:::.assignLinebuffer('bar')
Error in loadNamespace(name) : there is no package called 'rcompgen'
 > rcompgen:::.assignEnd(3)
Error in loadNamespace(name) : there is no package called 'rcompgen'
 > rcompgen:::.guessTokenFromLine()
Error in loadNamespace(name) : there is no package called 'rcompgen'
 > rcompgen:::.completeToken()
Error in loadNamespace(name) : there is no package called 'rcompgen'
 > rcompgen:::.retrieveCompletions()
Error in loadNamespace(name) : there is no package called 'rcompgen'

As a matter of fact, I never managed to have completion through the use 
of screen... and didn't take time to dig into it!

Hope this helps...


Le 09/11/2011 01:46, Francois Pepin a écrit :
> Hi Rodney,
> Sorry for not replying faster. I was trying a few other things but they didn't lead anywhere.
> The code in ess-r-d.el matches this output and modifying it to set NS to "utils:::" in ess-R-complete-object-name also modifies the these lines. Unfortunately, this does not seem to solve the issue. My guess is that ESS is having problems reading back from R in this instance. This would explain why it is missing the "TRUE" that would be generated by (ess-current-R-at-least '2.7.0).
> Is there anyone using ess-remote on this list? These seem to be basic issues and I find it strange that I would be the only one having them. Or would there be another way to get completion to work?
> François Pepin
> Scientist
> Sequenta, Inc.
> 400 E. Jamie Court, Suite 301
> South San Francisco, CA 94080
> 650 243 3929 p
> francois.pepin at sequentainc.com
> www.sequentainc.com
> The contents of this e-mail message and any attachments are intended solely for the addressee(s) named in this message.  This communication is intended to be and to remain confidential and may be subject to applicable attorney/client and/or work product privileges.  If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and its attachments.  Do not deliver, distribute or copy this message and/or any attachments and if you are not the intended recipient, do not disclose the contents or take any action in reliance upon the information contained in this communication or any attachments.
> On Oct 28, 2011, at 12:14 , Rodney Sparapani wrote:
>> Francois Pepin wrote:
>>> Hi Rodney,
>>> thanks for trying.
>>> This is fixed by having
>>> TERM=xterm
>>> in ~/.emacs_bash
>>> I should have been more explicit as to why I kept that little bit of configuration while clearing everything else.
>>> Francois
>> Hi Francois:
>> Ok, now I see the same thing as you, i.e. all of those error messages
>> when I reattach R at the terminal (in emacs, you need to C-q C-a d to
>> detach).  However, I'm wondering...  Are those lines generated by
>> ess-remote?  When I was in the *shell* buffer after the M-x ess-remote
>> interactions with R were working, but TAB completion was not.  But,
>> then we detach and work in the terminal; so is it really ess-remote?
>> I suppose that it could be, but I'm not certain yet.
>> --
>> Rodney Sparapani, PhD  Center for Patient Care and Outcomes Research
>> Sr. Biostatistician               http://www.mcw.edu/pcor
>> 4 wheels good, 2 wheels better!   Medical College of Wisconsin (MCW)
>> WWLD?:  What Would Lombardi Do?   Milwaukee, WI, USA
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help


~$ whoami
Mathieu Basille, Post-Doc

~$ locate
Laboratoire d'Écologie Comportementale et de Conservation de la Faune
+ Centre d'Étude de la Forêt
Département de Biologie
Université Laval, Québec

~$ info

~$ fortune
``If you can't win by reason, go for volume.''
Calvin, by Bill Watterson.

More information about the ESS-help mailing list