[Rd] fast version of split.data.frame or conversion from data.frame to list of its rows

2012-04-30 Thread Antonio Piccolboni
Hi, I was wondering if there is anything more efficient than split to do the kind of conversion in the subject. If I create a data frame as in system.time({fd = data.frame(x=1:2000, y = rnorm(2000), id = paste("x", 1:2000, sep =""))}) user system elapsed 0.004 0.000 0.004 and then I try

Re: [Rd] file.copy(src, src, recursive=TRUE) causes a segfault (Was: Re: R CMD check . segfault on re-building vignettes)

2012-04-30 Thread Henrik Bengtsson
It appears that file.copy() does not protect against the case when one copies one directory to a subdirectory of itself resulting in it trying to create and endless recursive copy of itself. REPRODUCIBLE EXAMPLE: src <- "foo" dir.create(src); file.copy(src, src, recursive=FALSE) # ok file.copy(src

[Rd] R CMD check . segfault on re-building vignettes

2012-04-30 Thread Sebastian Meyer
(Warning: There is some potential that this message is redundant.) I think that i have spotted an issue with R CMD check that does not trace back to a rare case, so it must have been reported already or i am doing something stupid. However, to be sure and because I did not find any comments on thi

[Rd] The constant part of the log-likelihood in StructTS

2012-04-30 Thread Jouni Helske
Dear all, I'd like to discuss about a possible bug in function StructTS of stats package. It seems that the function returns wrong value of the log-likelihood, as the added constant to the relevant part of the log-likelihood is misspecified. Here is an simple example: > data(Nile) > fit <- Struct

Re: [Rd] Creating a package which contains stand-alone C code

2012-04-30 Thread Rajen Shah
Thank you very much, this is very helpful indeed. Best wishes, Rajen On Apr 28, 2012 2:35 PM, "Simon Urbanek" wrote: > On Apr 27, 2012, at 9:54 AM, Rajen Shah wrote: > > > I would like to create an R package which uses some C code, which in > > turn uses MPI. At the moment I'm only interested i

Re: [Rd] How does .Fortran "dqrls" work?

2012-04-30 Thread yangleicq
Thank you! now the problem is solved -- View this message in context: http://r.789695.n4.nabble.com/How-does-Fortran-dqrls-work-tp4588973p4597407.html Sent from the R devel mailing list archive at Nabble.com. __ R-devel@r-project.org mailing list https