Re: [Rd] switch() called with just the EXPR argument causes R to hang (PR#14124)

2009-12-10 Thread maechler
> "SG" == Simone Giannerini > on Thu, 10 Dec 2009 09:30:10 +0100 (CET) writes: SG> Dear all, switch() called with just the EXPR argument SG> causes R to hang so that the only way to stop it is to SG> kill R. SG> Reproducible example: >> switch(EXPR="a") SG>

[Rd] switch() called with just the EXPR argument causes R to hang (PR#14124)

2009-12-10 Thread sgiannerini
Dear all, switch() called with just the EXPR argument causes R to hang so that the only way to stop it is to kill R. Reproducible example: > switch(EXPR="a") the internal C subroutine behind switch is do_switch located in R/src/main/builtin.c For convenience I reproduce it below. *