[Rd] Cases of TAB-completion that hang Rterm

From: Henrik Bengtsson <hb_at_biostat.ucsf.edu>
Date: Tue, 07 Jun 2011 04:19:39 -0400

FYI, via a bug report of one of my packages, I discovered that the following cases will hang Rterm when using TAB completion:

CASE #1:
Adding an empty default function for tail() causes Rterm on Windows to hang if one press TAB at the prompt:

% Rterm -vanilla
> tail.default <- function(...) {}

Error in specialOpLocs(text) :
  (list) object cannot be coerced to type 'double'

After this Rterm becomes completely unresponsive. The same error message will show up with Rgui, but R remains responsive.

CASE #2:
While troubleshooting the above, I discovered that if one does:

> debug(utils:::.guessTokenFromLine)

> debug(utils:::.win32consoleCompletion)
then Rterm hangs too (not Rgui).

This happens with R v2.13.0 patched (2011-05-30 r56020) and R v2.14.0 devel (2011-05-30 r56020) on Windows.


R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 07 Jun 2011 - 08:21:51 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 Wed 22 Jun 2011 - 11:30:21 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