File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 361361
362362 \item \code {axisTicks(usr , ... )} documentation clarification for
363363 \code {log = TRUE }, fixing bug \PR {18821 } thanks to Duncan Murdoch.
364+
365+ \item \code {debug()} and \code {debugonce(fun )} now also accept a
366+ string \code {fun } when it names an S4 generic , fixing \PR {18822 }
367+ thanks to Michael Jagan.
364368 }
365369 }
366370}
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ isdebugged(fun, signature = NULL)
1818debuggingState(on = NULL )
1919}
2020\arguments {
21- \item {fun }{any interpreted \R function . }
21+ \item {fun }{any interpreted \R function or a character string naming
22+ one. }
2223 \item {text }{a text string that can be retrieved when the browser is entered. }
2324 \item {condition }{a condition that can be retrieved when the browser is
2425 entered. }
Original file line number Diff line number Diff line change 22 once = FALSE )
33{
44 stopifnot(is.null(condition ), identical(text , " " ))
5- if (is.primitive(fun ))
6- fun <- getGeneric(fun )
7- if (! is(fun , " genericFunction" ))
8- stop(" Function must be an S4 generic" )
9-
5+ fun <- getGeneric(fun , mustWork = TRUE )
6+
107 if (isdebugged(fun , signature = signature ))
118 return (invisible (NULL ))
129
You can’t perform that action at this time.
0 commit comments