Skip to content

is.character not detected as an S3 generic method #1717

@billdenney

Description

@billdenney

I expected both of these to result in S3method() calls, but is.character is not

library(roxygen2)

roc_proc_text(namespace_roclet(),
"#' @export
is.character.foo <- function(x) {
  TRUE
}")
#> [1] "export(is.character.foo)"

roc_proc_text(namespace_roclet(),
"#' @export
as.character.foo <- function(x) {
  TRUE
}")
#> [1] "S3method(as.character,foo)"

Created on 2025-07-28 with reprex v2.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions