[R] what can we do when R gives no response

From: Peng Jiang <jp021_at_sjtu.edu.cn>
Date: Thu, 03 Jul 2008 08:41:48 +0800

  Hi, dear R experts ,
  I am new. I met this problem when I am trying to learn how to use the nlminb() function. I tried the example which the document provides ( as the following code ) and R gives no response . I don't know whether it is running or not and it takes a very long time but still output nothing so I just close the session window. my question is is there any method that I can see the running status of a R program or what can I do if R gives no response??? thank you in advance. here is my sessionInfo



attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] mclust_3.1-5

x <- rnbinom(100, mu = 10, size = 10)
hdev <- function(par) {

     -sum(dnbinom(x, mu = par[1], size = par[2], log = TRUE)) }
nlminb(c(9, 12), hdev)

Peng Jiang 江鹏 ,Ph.D. Candidate
Antai College of Economics & Management
Department of Mathematics
Shanghai Jiaotong University (Minhang Campus) 800 Dongchuan Road
200240 Shanghai
P. R. China

        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 03 Jul 2008 - 00:44:15 GMT

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 Thu 03 Jul 2008 - 03:31:16 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive