Displaying 1 result from an estimated 1 matches for "testrep".
Did you mean:
testreg
1997 Nov 07
0
R-alpha: "invisible" : R_INVISIBLE .. -- repeat{} gives BOMB
...y be kept. Note that S-PLUS can behave
pretty strangely with this kind of example. Try this (but type carefully!)
n<-0
repeat{ if(n==0) break }->x
Now try printing x, or indeed doing anything else with it.
>
>###-------- THIS IS EVEN WORSE: Segmentation violation !!! -----
>
>testrep <- function(n = 1) c(1, repeat {n <- n-1; if(n<=0) break})
>testrep()
>##R : Process R:1 segmentation violation at Thu Nov 6 11:36:27 1997
Try initializing t to R_NilValue in do_repeat (eval.c).
Martyn
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
r...