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.b...@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-boun...@r-project.org on behalf of rpba...@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@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 > [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel