Re: [Rd] [ESS] completion in [] (R internal completion fails)

From: Vitalie Spinu <spinuvit_at_gmail.com>
Date: Wed, 14 Mar 2012 10:57:46 +0100

Hello,

I am forwarding this from ESS mailing list, as it's a failure of internal R completion system:

This fails:

utils:::.assignLinebuffer('iris[iris$Spec')
utils:::.assignEnd(15)
utils:::.guessTokenFromLine()
utils:::.completeToken()
utils:::.retrieveCompletions() ## -> [1] "iris[iris$Spec"

This works

utils:::.assignLinebuffer('iris[ iris$Spec')  # note the space after [
utils:::.assignEnd(15)
utils:::.guessTokenFromLine()
utils:::.completeToken()
utils:::.retrieveCompletions() ## -> [1] "iris$Species"

Best,
Vitalie.

>>>> Andreas Leha <andreas.leha_at_med.uni-goettingen.de> >>>> on Wed, 14 Mar 2012 10:21:37 +0100 wrote:

>> Hi all,
>> I am seeing strange behaviour with completion inside [].

>> Suppose I have
>> ttt <- data.frame(aaa=1, bbb=1)
>> and I want to run
>> ttt$aaa[ttt$aaa == 1] <- 2

>> then completion at this point fails:
>> ttt$aaa[ttt$aa<TAB>

>> On the other hand, strangly enough, this works as expected:
>> ttt$aaa[ ttt$aa<TAB>

>> Regards,
>> Andreas

>> ______________________________________________
>> ESS-help_at_r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 14 Mar 2012 - 09:59:47 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 15 Mar 2012 - 18:40:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive