The method documentation name and alias for S7::class_any is not human friendly. For example, the Documenting S7 vignette produces \alias{size,structure(list(), class = "S7_any")-method} when documenting the method as a separate Rd.
MRE:
#' Size of an object
#'
#' @description
#' `size()` determines the size of an object.
#'
#' # Methods
#' `size()` is an S7 generic with methods available for the following
#' classes:
#'
#' `r doclisting::methods_list("size")`
#'
#' @param x An object.
#' @param ... Not used.
#' @returns A single number.
#'
#' @export
size <- S7::new_generic("size", "x")
#' @inherit size
S7::method(size, S7::class_any) <- function(x, ...) {
length(x)
}
A short abbreviation like any-method similar what is done for S7 base types (e.g. S7::class_double produces \alias{size,double-method}) would be nice.
The method documentation name and alias for
S7::class_anyis not human friendly. For example, the Documenting S7 vignette produces\alias{size,structure(list(), class = "S7_any")-method}when documenting the method as a separate Rd.MRE:
A short abbreviation like
any-methodsimilar what is done for S7 base types (e.g.S7::class_doubleproduces\alias{size,double-method}) would be nice.