From wdunl@p @ending from tibco@com  Wed Aug 15 16:32:36 2018
From: wdunl@p @ending from tibco@com (William Dunlap)
Date: Wed, 15 Aug 2018 07:32:36 -0700
Subject: [Rd] validspamobject?
In-Reply-To: <9FDDFFF4-C6F1-4A4A-8762-9E40C8785D16@dans.knaw.nl>
References: <CAOVYLHdqrAKUtZ23DH1d6z5PZqLmbWTLjr=9H0+-TFcCPyzbww@mail.gmail.com>
 <9FDDFFF4-C6F1-4A4A-8762-9E40C8785D16@dans.knaw.nl>
Message-ID: <CAF8bMcZuBNUdMJCwLFHmYFeckpf5T=yn5hpMKakdsRMrELgQTQ@mail.gmail.com>

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]]



[Rd] validspamobject?
William Dunlap