[Rd] How to install sqldf to R with version 2.10?

2012-03-17 Thread zhu free
Hi, How to install sqldf to R with version 2.10? I used the R in the cluster of university and there seems no way to update the R version to 2.14. However, I do need sqldf. I tried to install and there is the problem of namespace. How could I solve the problem of namespace and run sqldf on R with v

[Rd] R's copying of arguments (Re: Julia)

2012-03-17 Thread oliver
Hello, regarding the copying issue, I would like to point to the "Writing R-Extensions" documentation. There it is mentio9ned, that functions of extensions that use the .C interface normally do get their arguments pre-copied... In section 5.2: "There can be up to 65 further arguments givin

Re: [Rd] How to install sqldf to R with version 2.10?

2012-03-17 Thread Joshua Ulrich
On Sat, Mar 17, 2012 at 9:56 AM, zhu free wrote: > Hi, > How to install sqldf to R with version 2.10? I used the R in the cluster of > university and there seems no way to update the R version to 2.14. However, > I do need sqldf. I tried to install and there is the problem of namespace. > How coul

Re: [Rd] How to install sqldf to R with version 2.10?

2012-03-17 Thread Uwe Ligges
On 17.03.2012 17:20, Joshua Ulrich wrote: On Sat, Mar 17, 2012 at 9:56 AM, zhu free wrote: Hi, How to install sqldf to R with version 2.10? I used the R in the cluster of university and there seems no way to update the R version to 2.14. However, I do need sqldf. I tried to install and there

Re: [Rd] merge bug fix in R 2.15.0

2012-03-17 Thread Uwe Ligges
On 15.03.2012 22:48, Matthew Dowle wrote: Anyone? Is it intended that the first suffix can no longer be blank? Seems to be caused by a bug fix to merge in R 2.15.0. Right, the user is now protected against confusing himself by using names that were not unique before the merge. Uwe Ligg

Re: [Rd] How to install sqldf to R with version 2.10?

2012-03-17 Thread Prof Brian Ripley
On 17/03/2012 16:25, Uwe Ligges wrote: On 17.03.2012 17:20, Joshua Ulrich wrote: On Sat, Mar 17, 2012 at 9:56 AM, zhu free wrote: Hi, How to install sqldf to R with version 2.10? I used the R in the cluster of university and there seems no way to update the R version to 2.14. However, I do ne

[Rd] parApply vs parCapply

2012-03-17 Thread Ken Knoblauch
I've started to use the parallel package and it works very well speeding things up. Thank you for making this easy to do. Should I have expected that parCapply would return a vector when parApply returns a matrix? library(parallel) x <- matrix(rnorm(8), nc = 2) apply(x, 2, function(y) y)

Re: [Rd] Beta binomial and Beta negative binomial

2012-03-17 Thread Joan Maspons
Hello, El 16 de març de 2012 20:34, Christophe Dutang ha escrit: > Hi, > > Please look at the distribution task view > (http://cran.r-project.org/web/views/Distributions.html) and the package > gamlss.dist. Thanks for the tip. There are Beta binomial functions but they don't have the number o

Re: [Rd] parApply vs parCapply

2012-03-17 Thread Prof Brian Ripley
On 17/03/2012 17:03, Ken Knoblauch wrote: I've started to use the parallel package and it works very well speeding things up. Thank you for making this easy to do. Should I have expected that parCapply would return a vector when parApply returns a matrix? Maybe: I would have expected so, and A

Re: [Rd] Beta binomial and Beta negative binomial

2012-03-17 Thread Tim Triche, Jr.
use the gsl package for Kummer's hypergeometric and others. you might find implementing the distributions in C or C++ worthwhile for speed. thanks for doing this, by the way. On Sat, Mar 17, 2012 at 11:38 AM, Joan Maspons wrote: > Hello, > > > El 16 de març de 2012 20:34, Christophe Dutang h

[Rd] malloc/calloc/strdup and R's aequivalents

2012-03-17 Thread oliver
Hello, when looking at "Writing R Extensions" with mem-allocation in mind, I wondered, which functions to use to substitute malloc(), calloc(), realloc() and strdup() and free(). It looked like Calloc() or R_Calloc() might be useful for some of my tasks, but when trying to use R_Calloc() for exam

Re: [Rd] malloc/calloc/strdup and R's aequivalents

2012-03-17 Thread Dirk Eddelbuettel
On 18 March 2012 at 03:30, oliver wrote: | Hello, | | when looking at "Writing R Extensions" | with mem-allocation in mind, I wondered, | which functions to use to substitute | malloc(), calloc(), realloc() and strdup() and free(). | | It looked like Calloc() or R_Calloc() might be useful for |

Re: [Rd] malloc/calloc/strdup and R's aequivalents

2012-03-17 Thread Simon Urbanek
On Mar 17, 2012, at 10:30 PM, oliver wrote: > Hello, > > when looking at "Writing R Extensions" > with mem-allocation in mind, I wondered, > which functions to use to substitute > malloc(), calloc(), realloc() and strdup() and free(). > > It looked like Calloc() or R_Calloc() might be useful fo

Re: [Rd] malloc/calloc/strdup and R's aequivalents

2012-03-17 Thread oliver
On Sat, Mar 17, 2012 at 10:08:05PM -0500, Dirk Eddelbuettel wrote: > > On 18 March 2012 at 03:30, oliver wrote: > | Hello, > | > | when looking at "Writing R Extensions" > | with mem-allocation in mind, I wondered, > | which functions to use to substitute > | malloc(), calloc(), realloc() and str