Re: [Rd] Unexpected EOF in R-patched_2017-01-30

2017-01-31 Thread Avraham Adler
On Tue, Jan 31, 2017 at 3:30 PM, peter dalgaard wrote: > >> On 31 Jan 2017, at 18:56 , Avraham Adler wrote: >> >> Hello. >> >> When trying to unpack today's version of R-patched, > > From which source? The files from cran.r-project.org seems OK, both those in > src/base-prerelease and those from

Re: [Rd] Unexpected EOF in R-patched_2017-01-30

2017-01-31 Thread peter dalgaard
> On 31 Jan 2017, at 18:56 , Avraham Adler wrote: > > Hello. > > When trying to unpack today's version of R-patched, >From which source? The files from cran.r-project.org seems OK, both those in >src/base-prerelease and those from ETHZ. Also, is it not "tar -xfz" when >reading a compressed f

[Rd] Unexpected EOF in R-patched_2017-01-30

2017-01-31 Thread Avraham Adler
Hello. When trying to unpack today's version of R-patched, I get the following error: C:\R>tar -xf R-patched_2017-01-30.tar.gz gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now I got the same error for R-

Re: [Rd] rnbinom Returns Error that says optional argument is missing

2017-01-31 Thread Joris Meys
Hi Thomas, This seems fully expected behaviour. Obviously unspecified arguments are evaluated as missing regardless of a default value. So if you set mu as a default, the function will call C_rnbinom with n, size and prob. As prob is not specified you get the error one would expect. Specifying a d

Re: [Rd] RFC: tapply(*, ..., init.value = NA)

2017-01-31 Thread Martin Maechler
> Suharto Anggono Suharto Anggono via R-devel > on Tue, 31 Jan 2017 15:43:53 + writes: > Function 'aggregate.data.frame' in R has taken a different route. With drop=FALSE, the function is also applied to subset corresponding to combination of grouping variables that doesn't

[Rd] rnbinom Returns Error that says optional argument is missing

2017-01-31 Thread Thomas Roh
I am trying to reset the default arguments in the rnbinom function with the following example code: params <- c("size" = 1, "mu" = 1) formals(rnbinom)[names(params)] <- params rnbinom(n = 10) It returns the following: Error in rnbinom(n = 10) : argument "prob" is missing, with no default If I s

Re: [Rd] RFC: tapply(*, ..., init.value = NA)

2017-01-31 Thread Suharto Anggono Suharto Anggono via R-devel
Function 'aggregate.data.frame' in R has taken a different route. With drop=FALSE, the function is also applied to subset corresponding to combination of grouping variables that doesn't appear in the data (example 2 in https://stat.ethz.ch/pipermail/r-devel/2017-January/073678.html). Because 'd