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]]
A quick google search has a function called `validate_spam()` in the package: SPAM . SPArse Matrix Package spam is a collection of functions for sparse matrix algebra. Are you doing anything with sparse matrices? HTH, -Roy> On Aug 14, 2018, at 5:56 PM, Ronald Barry <rpbarry at alaska.edu> wrote: > > validspamobject()` is deprecated. Use `validate_spam()` directly********************** "The contents of this message do not reflect any position of the U.S. Government or NOAA." ********************** Roy Mendelssohn Supervisory Operations Research Analyst NOAA/NMFS Environmental Research Division Southwest Fisheries Science Center ***Note new street address*** 110 McAllister Way Santa Cruz, CA 95060 Phone: (831)-420-3666 Fax: (831) 420-3980 e-mail: Roy.Mendelssohn at noaa.gov www: http://www.pfeg.noaa.gov/ "Old age and treachery will overcome youth and skill." "From those who have been given much, much will be expected" "the arc of the moral universe is long, but it bends toward justice" -MLK Jr.
Hello, If you want to determine where the warning is generated, I think it's easiest to run R with options(warn=2). In that case all warnings are converted to errors, and you have more debugging tools, e.g. you can run traceback() to see the calling stack, or use options(error=recover). Hope you can catch it. Best regards, Emil Bode is an institute of the Dutch Academy KNAW <http://knaw.nl/nl> and funding organisation NWO <http://www.nwo.nl/>. ?On 15/08/2018, 02:57, "R-devel on behalf of Ronald Barry" <r-devel-bounces at r-project.org on behalf of rpbarry at alaska.edu> 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 at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
That was my first thought (my second was trace(.Deprecated,...)). However, the spam authors don't use .Deprecated() or warning() to tell about deprecated functions. See spam/R/deprecated.R: validspamobject <- function( ...) { # .Deprecated('validate_spam()') message("`validspamobject()` is deprecated. Use `validate_spam()` directly") validate_spam( ...) } spam.getOption <- function(...) { # .Deprecated(msg="`spam.getOption( arg)` is deprecated.\n Use `getOption( spam.arg)` directly") message("`spam.getOption( arg)` is deprecated. Use `getOption( spam.arg)` directly") getOption(...) } Bill Dunlap TIBCO Software wdunlap tibco.com On Wed, Aug 15, 2018 at 1:26 AM, Emil Bode <emil.bode at dans.knaw.nl> wrote:> Hello, > > If you want to determine where the warning is generated, I think it's > easiest to run R with options(warn=2). > In that case all warnings are converted to errors, and you have more > debugging tools, e.g. you can run traceback() to see the calling stack, or > use options(error=recover). > Hope you can catch it. > > > Best regards, > Emil Bode > > is an institute of the Dutch Academy KNAW <http://knaw.nl/nl> and funding > organisation NWO <http://www.nwo.nl/>. > > ?On 15/08/2018, 02:57, "R-devel on behalf of Ronald Barry" < > r-devel-bounces at r-project.org on behalf of rpbarry at alaska.edu> 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 at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >[[alternative HTML version deleted]]
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 <rpbarry at alaska.edu> 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]]
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 <rpbarry at alaska.edu> 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 at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >