Re: [R] Rscript hangs on exit with ubuntu 11.04

From: Dirk Eddelbuettel <edd_at_debian.org>
Date: Tue, 17 May 2011 06:50:09 -0500

On 17 May 2011 at 12:18, Mikael Hgqvist wrote:
| Hi,
|
| I have run into a strange issue with Rscript and plyr. When running
| the following Rscript:
|
| #!/usr/bin/Rscript
| library(plyr)
| d = ddply(data.frame(a=1:101,b=1:101), .(a,b), nrow)
| head(d)
|
| the script does not terminate. It prints out the results from head(d),
| but does not return to the shell. By changing the a and b to 1:100,
| the script returns. The same code running within the R shell works
| fine. I'm using plyr 1.5.2 and R 2.13.0 on Ubuntu 11.04. The same code
| worked fine on Ubuntu 10.10.
|
| I've found an older mail to the r-help mailing-list which may be related:
|
| https://stat.ethz.ch/pipermail/r-help/2011-March/273163.html
|
| but there was no solution. I also asked this question on the plyr mailing list.
|
| Can anyone else reproduce this or have any idea of how it can be resolved?

I cannot replicate this on Ubuntu 11.04:

edd_at_max:~$ Rscript /tmp/mikael.r
  a b V1
1 1 1 1
2 2 2 1
3 3 3 1
4 4 4 1
5 5 5 1
6 6 6 1
edd_at_max:~$ r -p /tmp/mikael.r # apt-get install littler   a b V1
1 1 1 1
2 2 2 1
3 3 3 1
4 4 4 1
5 5 5 1
6 6 6 1
edd_at_max:~$ cat /tmp/mikael.r
#!/usr/bin/Rscript
library(plyr)
d = ddply(data.frame(a=1:101,b=1:101), .(a,b), nrow) head(d)
edd_at_max:~$

Try maybe with your .RData file or whatever else may have side-effects.

Dirk

-- 
Gauss once played himself in a zero-sum game and won $50.
                      -- #11 at http://www.gaussfacts.com

______________________________________________
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 Tue 17 May 2011 - 11:53:21 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 Tue 17 May 2011 - 15:10:07 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