Re: [Rd] validspamobject?
Hi, I have submitted an updated R package to CRAN, the only problem seems to be the examples take too long to run on Windows and Debian. Several examples take over 10 seconds and the entire set takes around 110 seconds. However, I don't see what the 'target' amount of time is. How much will this need to be sped up to pass the test? Also, are there some tricks to speeding up examples that you have seen? For instance, is it possible to have the identical example in two help files but only have them run once (other than the obvious, which is putting a 'do not run' on one of them, which would seem to invite possible bad code)? Thanks for any information. Ron Barry On Tue, Aug 14, 2018 at 4:56 PM, Ronald Barry wrote: > Greetings, > My R package has been showing warnings of the form: > > `validspamobject()` is deprecated. Use `validate_spam()` directly > > None of my code uses the function validspamobject, so it must be a problem > in another package I'm calling, possibly spam or spdep. Has this problem > occurred with other people? It doesn't have any deleterious effect, but > it's annoying. In particular, how do I determine which package is causing > this warning? Thanks. > > Ron B. > [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] image() method for Matrix fails on empty matrices (?)
Reasonably easy to avoid, but maybe an edge case that should be handled? Haven't looked yet to see how easy it would be to fix ... Am I missing something? > library(Matrix) > m <- Matrix(0,nrow=3,ncol=3) > m 3 x 3 sparse Matrix of class "dsCMatrix" [1,] . . . [2,] . . . [3,] . . . > image(m) Error in seq.default(zrng[1], zrng[2], length.out = cuts + 2) : 'from' must be a finite number In addition: Warning messages: 1: In min(xx, na.rm = TRUE) : no non-missing arguments to min; returning Inf 2: In min(x) : no non-missing arguments to min; returning Inf 3: In max(x) : no non-missing arguments to max; returning -Inf 4: In min(x) : no non-missing arguments to min; returning Inf 5: In max(x) : no non-missing arguments to max; returning -Inf ## now modify matrix > m[3,3] <- 1 > image(m) ## works fine ## reset: > m[3,3] <- 0 > image(m) ## fails again __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] validspamobject?
On 18/08/2018 3:47 PM, Ronald Barry wrote: Hi, I have submitted an updated R package to CRAN, the only problem seems to be the examples take too long to run on Windows and Debian. Several examples take over 10 seconds and the entire set takes around 110 seconds. However, I don't see what the 'target' amount of time is. How much will this need to be sped up to pass the test? Also, are there some tricks to speeding up examples that you have seen? For instance, is it possible to have the identical example in two help files but only have them run once (other than the obvious, which is putting a 'do not run' on one of them, which would seem to invite possible bad code)? Thanks for any information. Doesn't the error message say something like "Examples with CPU or elapsed time > 5s"? So to avoid that message, reduce the time to less than the stated limit. You can't share examples between different help pages, but you can combine topics in a single page, so there's only one example to run. The usual way to speed up examples is to make up trivial datasets for them, rather than running them on real data. Duncan Murdoch Ron Barry On Tue, Aug 14, 2018 at 4:56 PM, Ronald Barry wrote: Greetings, My R package has been showing warnings of the form: `validspamobject()` is deprecated. Use `validate_spam()` directly None of my code uses the function validspamobject, so it must be a problem in another package I'm calling, possibly spam or spdep. Has this problem occurred with other people? It doesn't have any deleterious effect, but it's annoying. In particular, how do I determine which package is causing this warning? Thanks. Ron B. [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel