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

后端 未结 2 500
南笙
南笙 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: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)
    

提交回复
热议问题