friendly_class_undefined_message: Print friendly object class not defined message

View source: R/utils.R

friendly_class_undefined_messageR Documentation

Print friendly object class not defined message

Description

Checks valid methods and issues a friendlier error message in case the method is undefined for the supplied object type.

Usage

friendly_class_undefined_message(object_class, function_name)

Arguments

object_class

character describing the object class

function_name

character which is the function name

Examples

# as.tokens.default <- function(x, concatenator = "", ...) {
#     stop(quanteda:::friendly_class_undefined_message(class(x), "as.tokens"))
# }

quanteda.textmodels documentation built on Oct. 5, 2022, 1:06 a.m.