[Rd] autocompletion problem

Herve Pages hpages at fhcrc.org
Wed Apr 9 23:35:19 CEST 2008


Hi,

Let's create the xxx object just to avoid confusion even if it's not necessary
for reproducing the problem below:

   xxx <- 8:3

If I start typing this:

   max(xxx[

and now try to autocomplete with <TAB>, then I get the following error (and a warning):

   > max(xxx[Error in grep(sprintf("^%s", makeRegexpSafe(text)), allArgs, value = TRUE) :
     invalid regular expression '^xxx['
   In addition: Warning message:
   In grep(sprintf("^%s", makeRegexpSafe(text)), allArgs, value = TRUE) :
     regcomp error:  'Invalid regular expression'

Now it seems that this problem in R has managed to screw up something out of R (and
this is probably OS dependent, I'm running 64-bit openSUSE 10.3) because when I quit
R and try to do something at the shell level, what I type is not echoed anymore in
the terminal window. For example if I type 'whoami' followed by <Enter>, here is what
I get on the screen (only the output of the command is displayed but not the command
itself):

   hpages at gopher3:~> hpages

I've tried this with other R versions (2.6.1, 2.6.2) on other Linux flavors (64-bit
openSUSE 10.1, 32-bit openSUSE 10.3, 32-bit Ubuntu 6.06) and got almost the same thing,
the only difference being that with older versions of R (e.g. with 2.7.0 from 2007-12-09
r43632), I get the error message but no additional warning.

Cheers,
H.


 > sessionInfo()
R version 2.7.0 beta (2008-04-07 r45159)
x86_64-unknown-linux-gnu

locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base



More information about the R-devel mailing list