You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
checking examples ... [1s/1s] WARNING
Found the following significant warnings:
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Warning: 'all.equal.default(<function>)' is deprecated.
Deprecated functions may be defunct as soon as of the next release of
R.
See ?Deprecated.
which, because Linter() doesn't add "function" to the class winds up dispatching to all.equal.default() instead of all.equal.function().
I'm not sure why it's not showing up for GHA -- maybe there's some tweak in S3 dispatch that uses mode() (which is correctly "function") instead of class() for some versions?
Anyway, is there any reason not to change this line:
To set the Linter() output class to c("linter", "lintr_function", "function")? It seems like the better approach in general. It would also improve this line:
Actually, it looks like this recent change is why it's not showing up in r-devel/current release. But still don't know why it's not showing up in GHA oldrel:
As of now, oldrel is throwing a warning:
https://www.r-project.org/nosvn/R.check/r-oldrel-macos-arm64/lintr-00check.html
AFAICT, it's due to this line:
lintr/R/with.R
Line 76 in 5a0b54e
which, because
Linter()
doesn't add"function"
to the class winds up dispatching toall.equal.default()
instead ofall.equal.function()
.I'm not sure why it's not showing up for GHA -- maybe there's some tweak in S3 dispatch that uses
mode()
(which is correctly"function"
) instead ofclass()
for some versions?Anyway, is there any reason not to change this line:
lintr/R/utils.R
Line 181 in 5a0b54e
To set the
Linter()
output class toc("linter", "lintr_function", "function")
? It seems like the better approach in general. It would also improve this line:lintr/R/with.R
Lines 49 to 51 in 5a0b54e
Where we apparently always add
"lintr_function"
to the class later, to do so up-front.The text was updated successfully, but these errors were encountered: