[Rd] rpois hangs (PR#530)

kjetikj@astro.uio.no kjetikj@astro.uio.no
Sun, 30 Apr 2000 21:01:04 +0200 (MET DST)


Full_Name: Kjetil Kjernsmo
Version: Version 1.0.0
OS: osf1
Submission from: (NULL) (129.240.28.227)


Dear all,

I have come across another really strange bug in rpois.
If I do
> rpois(1, 1000000 * rpois(1, 10000))
sometimes it hangs, and hangs...
On my XP1000 alphaev6 workstation, it seems to happen more 
frequently than on other machines. I started a session on an older 
computer, and from the start, it looks like this:
> rpois(1, 1000000 * rpois(1, 10000))
[1] 1537190728
> ^[[A
Error: syntax error [whoops, I'm usually using ESS]
> rpois(1, 1000000 * rpois(1, 10000))
[1] 1507263999
> rpois(1000, 1000000 * rpois(1000, 10000))          
[hanged here, killed with ^C]

> rpois(1, 1000000 * rpois(1, 10000))
[1] 1463075843
> rpois(1, 1000000 * rpois(1, 10000))
[1] 1438068697
> rpois(1, 1000000 * rpois(1, 10000))
[hanging]

I think this is strange, because I've been doing this stuff 
a lot lately, but usually with a rather small parameter to the 
second rpois.  

Kjetil

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._