Re: [Rd] .C and .Call: convolve example not working

2011-08-11 Thread Thomas Lumley
On Fri, Aug 12, 2011 at 1:06 AM, Lars Wißler wrote: > Dear R users, > > I want to call C code via the .C or .Call interface. This works fine > with integer values but using doubles the array received in C will be > set to zeros. > > I have tried the convolve examples (Writing R extensions, chapter

[Rd] .C and .Call: convolve example not working

2011-08-11 Thread Lars Wißler
Dear R users, I want to call C code via the .C or .Call interface. This works fine with integer values but using doubles the array received in C will be set to zeros. I have tried the convolve examples (Writing R extensions, chapter 5.2) and still the resulting array consists of zeros. My code (

Re: [Rd] autogenerated namespaces not initialized correctly

2011-08-11 Thread Prof Brian Ripley
On Thu, 11 Aug 2011, Michael Lawrence wrote: Hi guys, This probably isn't news, but when a package is given an autogenerated namespace, its .First.lib, if any, is no longer called. Please do read the NEWS file: .First.lib *is* called as either .onLoad or .onAttach. This causes problems, e.

[Rd] autogenerated namespaces not initialized correctly

2011-08-11 Thread Michael Lawrence
Hi guys, This probably isn't news, but when a package is given an autogenerated namespace, its .First.lib, if any, is no longer called. This causes problems, e.g., when a package is loading a dynamic library. Probably no good solution here. The initialization routines could be made to call .First.

[Rd] Combining levels of factors

2011-08-11 Thread BXC (Bendix Carstensen)
The existing relevel() function in "stats" could conveniently be replaced with the Relevel() from the "Epi" package, which gives some added functionality: - Moving more than one level up first - Allowing to combine levels of factors This functionality is not something specific for epidemiology.

[Rd] CRAN Service Notification - Downtime TODAY 13:00 - 13:30

2011-08-11 Thread Maria Weiler
Dear users, There will be an outage of the CRAN Server in a few minutes as we need to temporarily move the corresponding server to another building. There are maintenance works at the main power supply of the WU Vienna. The service will be available as soon as possible. Another short downtime

[Rd] relist.list broken for skeletons with empty elements

2011-08-11 Thread Michael Lawrence
Hi guys, This seems wrong: > x <- list(2, numeric()) > relist(unlist(x), x) [[1]] [1] 2 [[2]] [1] NA 2 Here is the definition: function (flesh, skeleton = attr(flesh, "skeleton")) { ind <- 1L result <- skeleton for (i in seq_along(skeleton)) { size <- length(unlist(result[

Re: [Rd] Referencing non-CRAN extension from CRAN package

2011-08-11 Thread Kurt Hornik
> Tim Jurka writes: > Hi r-devel, > I would like to submit a package to CRAN that makes use of an Omegahat > extension, RStem ( http://www.omegahat.org/Rstem/ ). What is the best > way to reference it in my package, and ensure compliance with CRAN > submission guidelines? CRAN can deal with