Displaying 2 results from an estimated 2 matches for "dispose_packag".
Did you mean:
dispose_packages
2014 Dec 08
2
CRAN packages mis-using \donttest : falsy
...xample in the 'disposables' package I have:
\donttest{
pkg <- make_packages(
foo1 = { f <- function() print("hello!") ; d <- 1:10 },
foo2 = { f <- function() print("hello again!") ; d <- 11:20 }
)
foo1::f()
foo2::f()
foo1::d
foo2::d
dispose_packages(pkg)
}
So in this case should I suggest 'foo1' and 'foo2'?
Gabor
[...]
2014 Dec 08
2
CRAN packages mis-using \donttest : falsy
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_64-debian-clang/falsy-00check.html)
if the colorspace package is not declared as a dependency.