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