Re: [Rd] CRAN packages mis-using \donttest : falsy

2014-12-08 Thread Duncan Murdoch
On 08/12/2014 4:12 PM, Gábor Csárdi wrote: On Mon, Dec 8, 2014 at 3:43 PM, Duncan Murdoch wrote: [...] > In this case, I don't see a way to include that code but avoid warnings. So > you could ask for forgiveness when you submit it to CRAN (and perhaps they > would be forgiving), or you could u

Re: [Rd] CRAN packages mis-using \donttest : falsy

2014-12-08 Thread Gábor Csárdi
On Mon, Dec 8, 2014 at 3:43 PM, Duncan Murdoch wrote: [...] > In this case, I don't see a way to include that code but avoid warnings. So > you could ask for forgiveness when you submit it to CRAN (and perhaps they > would be forgiving), or you could use some other code in your example. Just to

Re: [Rd] CRAN packages mis-using \donttest : falsy

2014-12-08 Thread Duncan Murdoch
On 08/12/2014 3:38 PM, Gábor Csárdi wrote: On Mon, Dec 8, 2014 at 3:32 PM, Duncan Murdoch wrote: [...] > Why not declare colorspace as a "Suggests:" kind of dependency? I guess that is a solution. :/ In another example in the 'disposables' package I have: \donttest{ pkg <- make_packages(

Re: [Rd] CRAN packages mis-using \donttest : falsy

2014-12-08 Thread Gábor Csárdi
On Mon, Dec 8, 2014 at 3:32 PM, Duncan Murdoch wrote: [...] > Why not declare colorspace as a "Suggests:" kind of dependency? I guess that is a solution. :/ In another example in the 'disposables' package I have: \donttest{ pkg <- make_packages( foo1 = { f <- function() print("hello!") ; d

Re: [Rd] CRAN packages mis-using \donttest : falsy

2014-12-08 Thread Duncan Murdoch
On 08/12/2014 9:40 AM, Gábor Csárdi wrote: Hi all, anyone has an idea how I could fix this? \donttest{ ## Set colors from colorspace package with a fallback col <- try(colorspace::rainbow_hcl(5), silent = TRUE) %||% rainbow(5) } The problem is that this makes R CMD check freak out (http://www.

Re: [Rd] CRAN packages mis-using \donttest : falsy

2014-12-08 Thread Gábor Csárdi
Hi all, anyone has an idea how I could fix this? \donttest{ ## Set colors from colorspace package with a fallback col <- try(colorspace::rainbow_hcl(5), silent = TRUE) %||% rainbow(5) } The problem is that this makes R CMD check freak out (http://www.r-project.org/nosvn/R.check/r-devel-linux-x86