【问题标题】:Roxygen2 : S3 methods with dots in the name of the genericRoxygen2 : S3 方法在泛型名称中带有点
【发布时间】:2020-07-20 17:05:13
【问题描述】:

我想使用 Roxygen2 7.0.2 为 t.test 导出一个 s3 方法。但是如果我在一个名为 t.test.classname 的函数上使用 @export,Roxygen2 会在 NAMESPACE 中为 t 编写一个“test.classname”方法,这不是预期的。

它写道:S3method(t,test.classname)

我想要:S3method(t.test,classname)

如何明确指定?

谢谢。

【问题讨论】:

  • 我更新到7.1.0,看不到任何变化

标签: r methods roxygen2


【解决方案1】:

它并不完全优雅,但我设法解决了写作问题:

#' @rawNamespace S3method(t.test,classname)

【讨论】:

    猜你喜欢
    • 2014-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-06
    • 2023-03-20
    • 2021-02-06
    • 1970-01-01
    相关资源
    最近更新 更多