Documentation issue when S7 property is a function
```r
...
describe = S7::new_property(
class = S7::class_function | NULL,
default = my_describe
)
...
```
Gives me the following warning:
```
❯ checking for code/documentation mismatches ... WARNING
Codoc mismatches from Rd file 'Foo.Rd':
Foo
Code: function(.data = function() NULL, id = character(0),
description = character(0), describe = function (x,
..., max_print = 100) { UseMethod("my_describe")})
Docs: function(.data = function() NULL, id = character(0),
description = character(0), describe = function(x,
..., max_print = 100) { UseMethod("my_describe")})
Mismatches in argument default values:
Name: 'describe'
Code: function (x, ..., max_print = 100)
{
UseMethod("my_describe")
}
Docs: function(x, ..., max_print = 100) {
UseMethod("my_describe")
}
```
How hard will it be to lazy evaluate the `my_describe` here... Or should I post this issue to roxygen2?
关闭于 2026-02-02 1 条评论