Skip to content
Prev 327830 / 398498 Next

GO TO function in R

There is no 'GO TO'.

Try wrapping your code in a while(TRUE){...} loop.
   while(TRUE) {
        ... do something ...
        Sys.sleep(time)
   }
Or you could have it read from a named pipe which some other process
feeds.
   while(length(readLines(n=1, "someNamedPipe"))==1) {
      ... do something ...
   }

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com