friendly_class_undefined_message: Print friendly object class not defined message

Description Usage Arguments Examples

View source: R/utils.R

Description

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

Usage

1
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

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

koheiw/quanteda.core documentation built on Sept. 21, 2020, 3:44 p.m.