[R] smoothScatter() and the KernSmooth package
Martin Maechler
m@ech|er @end|ng |rom @t@t@m@th@ethz@ch
Fri Jun 19 17:37:45 CEST 2020
>>>>> Duncan Murdoch
>>>>> on Fri, 19 Jun 2020 10:14:19 -0400 writes:
> On 19/06/2020 9:59 a.m., Jeffrey Dick wrote:
>> Hi Witold,
>>
>> See also this thread on R-pkg-devel. Quoting Duncan Murdoch, "That
>> looks like a bug in grDevices."
> Yes, and the bug is still there: grDevices:::.smoothScatterCalcDensity
> calls KernSmooth::bkde2D without checking whether KernSmooth is available.
> Duncan Murdoch
>> https://stat.ethz.ch/pipermail/r-package-devel/2019q3/004287.html
Thank you, Duncan.
I'm taking care of this now -- but just for R-devel, not the
upcoming 4.0.2
Martin
>> Cheers,
>> Jeff
>> On Wed, Jun 17, 2020 at 4:59 PM Witold E Wolski <wewolski using gmail.com> wrote:
>>>
>>> Hello,
>>>
>>> I am getting the following error when running a package check
>>> ```
>>> Error in loadNamespace(name) : there is no package called 'KernSmooth'
>>> Calls: <Anonymous> ... loadNamespace -> withRestarts ->
>>> withOneRestart -> doWithOneRestart
>>> Execution halted
>>> ```
>>>
>>> The error happens in a function which calls graphics::smoothScatter
>>>
>>> I found this e-mail on the r-devel list where this problem is also reported.
>>> https://stat.ethz.ch/pipermail/r-devel/2015-February/070671.html
>>>
>>> So I could add KernSmooth to Suggest in the DESCRIPTION but I have a
>>> few questions:
>>> (and I am citing from the e-mail above to which I could not find a reply):
>>>
>>> "I have a few questions: isn't it unusual the way smoothScatter calls
>>>
>>> grDevices:::.smoothScatterCalcDensity() and KernSmooth::bkde2D(),
>>> i.e., without requiring the packages?
>>> Shouldn't "graphics" suggest "KernSmooth"?
>>> "
>>>
>>> best regards
>>> Witek
>>>
>>>
>>>
>>>
>>> --
>>> Witold Eryk Wolski
>>>
>>> ______________________________________________
>>> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>
>> ______________________________________________
>> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list