Exporting non-S3-methods with dots in the name using roxygen2 v4

后端 未结 2 478
南笙
南笙 2020-12-03 01:41

Since roxygen2 version 4.0.0, the @S3method tag has been deprecated in favour of using @export.

The package now t

相关标签:
2条回答
  • 2020-12-03 02:15

    Use @method generic class and @export instead of @S3method. Take a look at this thread: S3 method help (roxygen2)

    0 讨论(0)
  • 2020-12-03 02:17

    As Mr Flick commented, appending the full function name to the roxygen line works correctly. If I change the line to:

    #' @export check.arg
    

    then the NAMESPACE file contains:

    export(check.arg)
    
    0 讨论(0)
提交回复
热议问题