Skip to content

Commit 77b036d

Browse files
committed
feat: remove deprecated and defunct methods from checkS3method
1 parent 5321c48 commit 77b036d

File tree

1 file changed

+5
-0
lines changed
  • src/library/tools/R

1 file changed

+5
-0
lines changed

src/library/tools/R/QC.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2635,6 +2635,11 @@ function(package, dir, lib.loc = NULL)
26352635
function(g) {
26362636
methods <-
26372637
gen_dot_cls_matches(g, functions_in_code)
2638+
method_funs <-
2639+
Filter(Negate(function(x) {
2640+
isDefunct(x) || isDeprecated(x)
2641+
}), mget(methods, code_env))
2642+
methods <- names(method_funs)
26382643
if((n <- length(methods)) > 0L) {
26392644
gargs <- nfg(g, code_env)
26402645
entries <-

0 commit comments

Comments
 (0)