Skip to content

Commit 4fcf661

Browse files
author
maechler
committed
checkReplaceFuns(): report non-"<gen>.<cls>" as \S3method{<gen>}{<cls>}
git-svn-id: https://svn.r-project.org/R/trunk@88418 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 6c3540f commit 4fcf661

File tree

1 file changed

+3
-3
lines changed
  • src/library/tools/R

1 file changed

+3
-3
lines changed

src/library/tools/R/QC.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2945,9 +2945,9 @@ function(package, dir, lib.loc = NULL)
29452945
isRepl <- ns_S3_genRepl[nonCh]
29462946
if(any(isRepl) && any(bad_last <- !vapply(S3_fun_obj[isRepl], .check_last_formal_arg, NA)))
29472947
bad_replace_funs <-
2948-
c(bad_replace_funs, paste0(ns_S3_generics [nonCh][isRepl][bad_last],
2949-
" . ", # not "." on purpose, but similar
2950-
ns_S3_methods_db[nonCh, 2L][isRepl][bad_last]))
2948+
c(bad_replace_funs, sprintf("\\S3method{%s}{%s}",
2949+
ns_S3_generics [nonCh] [isRepl][bad_last],
2950+
ns_S3_methods_db[nonCh, 2L][isRepl][bad_last]))
29512951
}
29522952
if(.isMethodsDispatchOn()) {
29532953
S4_generics <- .get_S4_generics(code_env)

0 commit comments

Comments
 (0)