[Rd] Sending lists using .C

2012-04-21 Thread chris90nz
Hi, I posted around a week ago and I will try this time with a more detailed description. I am converting R code to C code to boost speed as currently it takes a few days to run. Now I will try describe this with as detail as possible. I have a list of size 47. Each element of the list is itself

Re: [Rd] csv version of data in an R object

2012-04-21 Thread Barry Rowlingson
On Sat, Apr 21, 2012 at 3:28 PM, Max Kuhn wrote: > For a package, I need to write a csv version of a data set to an R > object. Right now, I use: > >    out <- capture.output( >                          write.table(x, >                                      sep = ",", >                            

Re: [Rd] Problem with args

2012-04-21 Thread Simon Urbanek
On Apr 21, 2012, at 1:45 PM, Gabor Grothendieck wrote: > On Sat, Apr 21, 2012 at 1:38 PM, Simon Urbanek > wrote: >> >> On Apr 21, 2012, at 1:03 PM, Gabor Grothendieck wrote: >> >>> args ought to check that its argument is a function: >>> max <- 3 args(max) >>> NULL >>> >>> e.g. >>>

Re: [Rd] Problem with args

2012-04-21 Thread Gabor Grothendieck
On Sat, Apr 21, 2012 at 2:10 PM, Simon Urbanek wrote: > > On Apr 21, 2012, at 1:45 PM, Gabor Grothendieck wrote: > >> On Sat, Apr 21, 2012 at 1:38 PM, Simon Urbanek >> wrote: >>> >>> On Apr 21, 2012, at 1:03 PM, Gabor Grothendieck wrote: >>> args ought to check that its argument is a functio

Re: [Rd] Problem with args

2012-04-21 Thread Gabor Grothendieck
On Sat, Apr 21, 2012 at 1:38 PM, Simon Urbanek wrote: > > On Apr 21, 2012, at 1:03 PM, Gabor Grothendieck wrote: > >> args ought to check that its argument is a function: >> >>> max <- 3 >>> args(max) >> NULL >> >> e.g. >> >>> args <- function(name) { >> +     name <- match.fun(name) >> +     base

Re: [Rd] Problem with args

2012-04-21 Thread Simon Urbanek
On Apr 21, 2012, at 1:03 PM, Gabor Grothendieck wrote: > args ought to check that its argument is a function: > >> max <- 3 >> args(max) > NULL > > e.g. > >> args <- function(name) { > + name <- match.fun(name) > + base::args(name) > + } >> args(max) > function (..., na.rm = FALSE) > N

[Rd] Problem with args

2012-04-21 Thread Gabor Grothendieck
args ought to check that its argument is a function: > max <- 3 > args(max) NULL e.g. > args <- function(name) { + name <- match.fun(name) + base::args(name) + } > args(max) function (..., na.rm = FALSE) NULL -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-87

Re: [Rd] R CMD check -- non S3 method warning

2012-04-21 Thread Prof Brian Ripley
On 21/04/2012 14:18, Whit Armstrong wrote: I'm trying to R CMD check a package, and I'm getting the 'checking S3 generic/method consistency' warning. I have written a function 'gamma.dist' which is _not_ an S3 method, but happens to collide with the 'gamma' function from the R::base namespace.

[Rd] csv version of data in an R object

2012-04-21 Thread Max Kuhn
For a package, I need to write a csv version of a data set to an R object. Right now, I use: out <- capture.output( write.table(x, sep = ",", na = "?", fi

[Rd] R CMD check -- non S3 method warning

2012-04-21 Thread Whit Armstrong
I'm trying to R CMD check a package, and I'm getting the 'checking S3 generic/method consistency' warning. I have written a function 'gamma.dist' which is _not_ an S3 method, but happens to collide with the 'gamma' function from the R::base namespace. Is there a way of telling CMD check that the