Re: [Rd] Correct use of Depends, Imports and ::

2012-11-07 Thread Mauricio Zambrano-Bigiarini
2012/11/7 Stephanie M. Gogarten : > > > On 11/7/12 12:00 PM, Prof Brian Ripley wrote: >> >> On 07/11/2012 17:52, mauricio zambrano wrote: >>> >>> >>> >>> On 11/07/12, Simon Urbanek wrote: >>> On Nov 7, 2012, at 9:25 AM, Simon Urbanek wrote: > On Nov 7, 2012, at 4:04 AM, Mauricio Zam

Re: [Rd] Correct use of Depends, Imports and ::

2012-11-07 Thread Mauricio Zambrano-Bigiarini
2012/11/7 Prof Brian Ripley : > On 07/11/2012 17:52, mauricio zambrano wrote: >> >> >> >> On 11/07/12, Simon Urbanek wrote: >> >>> On Nov 7, 2012, at 9:25 AM, Simon Urbanek wrote: >>> On Nov 7, 2012, at 4:04 AM, Mauricio Zambrano-Bigiarini wrote: > Dear R developers, > > Tak

Re: [Rd] Correct use of Depends, Imports and ::

2012-11-07 Thread Stephanie M. Gogarten
On 11/7/12 12:00 PM, Prof Brian Ripley wrote: On 07/11/2012 17:52, mauricio zambrano wrote: On 11/07/12, Simon Urbanek wrote: On Nov 7, 2012, at 9:25 AM, Simon Urbanek wrote: On Nov 7, 2012, at 4:04 AM, Mauricio Zambrano-Bigiarini wrote: Dear R developers, Taking advantage of the ye

Re: [Rd] alternative to .Fortran("dqrls", ...)

2012-11-07 Thread Prof Brian Ripley
On 07/11/2012 20:26, Yanming Di wrote: Hi all, In a package I maintain, I use the "dqrls" from the base package to fit regression models. However, I was informed that directly calling functions from the base package is no longer allowed: "CRAN packages should use only the public API. Hence they

[Rd] alternative to .Fortran("dqrls", ...)

2012-11-07 Thread Yanming Di
Hi all, In a package I maintain, I use the "dqrls" from the base package to fit regression models. However, I was informed that directly calling functions from the base package is no longer allowed: "CRAN packages should use only the public API. Hence they should not use entry points not decl

Re: [Rd] Correct use of Depends, Imports and ::

2012-11-07 Thread Prof Brian Ripley
On 07/11/2012 17:52, mauricio zambrano wrote: On 11/07/12, Simon Urbanek wrote: On Nov 7, 2012, at 9:25 AM, Simon Urbanek wrote: On Nov 7, 2012, at 4:04 AM, Mauricio Zambrano-Bigiarini wrote: Dear R developers, Taking advantage of the yesterday discussion about the use of Depends/Impor

Re: [Rd] Correct use of Depends, Imports and ::

2012-11-07 Thread mauricio zambrano
On 11/07/12, Simon Urbanek wrote: > On Nov 7, 2012, at 9:25 AM, Simon Urbanek wrote: > > > On Nov 7, 2012, at 4:04 AM, Mauricio Zambrano-Bigiarini wrote: > > > >> Dear R developers, > >> > >> Taking advantage of the yesterday discussion about the use of > >> Depends/Import/Suggests/Enhance

[Rd] Another code to drop factor levels

2012-11-07 Thread Suharto Anggono Suharto Anggono
This is a variant that does not use 'tabulate'. As before, there is no restriction for anyone to use this code. droplevels2i <- function(x) { if (is.null(levels(x))) stop("no 'levels' attribute") nlev <- length(levels(x)) y <- unclass(x) used <- logical(nlev) used[] <- FALSE used[y] <- TRUE tb

Re: [Rd] Correct use of Depends, Imports and ::

2012-11-07 Thread Simon Urbanek
On Nov 7, 2012, at 9:25 AM, Simon Urbanek wrote: > On Nov 7, 2012, at 4:04 AM, Mauricio Zambrano-Bigiarini wrote: > >> Dear R developers, >> >> Taking advantage of the yesterday discussion about the use of >> Depends/Import/Suggests/Enhances, I would like to add a related question. >> >> Let'

Re: [Rd] Correct use of Depends, Imports and ::

2012-11-07 Thread Simon Urbanek
On Nov 7, 2012, at 4:04 AM, Mauricio Zambrano-Bigiarini wrote: > Dear R developers, > > Taking advantage of the yesterday discussion about the use of > Depends/Import/Suggests/Enhances, I would like to add a related question. > > Let's assume, in the DESCRIPTION file of my package foo0, I have:

Re: [Rd] Comments in the DESCRIPTION file

2012-11-07 Thread Prof Brian Ripley
On 07/11/12 09:53, Duncan Murdoch wrote: On 12-11-07 4:26 AM, Christophe Genolini wrote: Hi all, Is it possible to add comments in the DESCRIPTION file? The read.dcf function is used to read the DESCRIPTION file, and it doesn't support comments. (The current Debian control format descriptio

Re: [Rd] Comments in the DESCRIPTION file

2012-11-07 Thread Duncan Murdoch
On 12-11-07 4:26 AM, Christophe Genolini wrote: Hi all, Is it possible to add comments in the DESCRIPTION file? The read.dcf function is used to read the DESCRIPTION file, and it doesn't support comments. (The current Debian control format description does appear to support comments with l

[Rd] Comments in the DESCRIPTION file

2012-11-07 Thread Christophe Genolini
Hi all, Is it possible to add comments in the DESCRIPTION file? Sincerely Christophe -- Christophe Genolini Maître de conférences en bio-statistique Vice président Communication interne et animation du campus Université Paris Ouest Nanterre La Défense __

[Rd] Correct use of Depends, Imports and ::

2012-11-07 Thread Mauricio Zambrano-Bigiarini
Dear R developers, Taking advantage of the yesterday discussion about the use of Depends/Import/Suggests/Enhances, I would like to add a related question. Let's assume, in the DESCRIPTION file of my package foo0, I have: Depends: foo1 Imports: foo2 while in the NAMESPACE file of my package I