【发布时间】:2017-01-09 11:07:12
【问题描述】:
我想记录一个使用 R S4 系统的新方法,例如sqrt():
##' Extend sqrt
##'
##' @title sqrt for myClass
##' @inheritParams sqrt
##' @return A numeric vector.
##' @exportMethod sqrt
##'
setMethod(f = 'sqrt',
signature = 'myClass',
definition = function(x) {
...
})
当我执行devtools::document() 时,我收到了类似Warning: @inheritParams: can't find topic sqrt 的警告消息。我想知道在这种情况下如何正确使用@inheritParams。
【问题讨论】: