Skip to content

Commit cee9a81

Browse files
committed
just use glue within messages for consistency
1 parent 3280cd1 commit cee9a81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/utils.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
#' @param obj The object whose class should be checked.
2424
#' @param obj_name A character string with the name of the object (used in error messages).
2525
#' @param permitted_classes A character vector of allowed class names.
26-
#'
26+
#' @importFrom glue glue glue_collapse
2727
#' @return Invisibly returns `TRUE` if the class check passes; otherwise throws an error.
2828
#' @noRd
2929
.check_class <- function(obj, obj_name, permitted_classes) {
3030
typ <- class(obj)
3131

3232
if (!any(permitted_classes %in% typ)) {
3333
msg <- glue(
34-
"The server-side object must be of type {paste(permitted_classes, collapse = ' or ')}. ",
34+
"The server-side object must be of type {glue_collapse(permitted_classes, sep = ' or ')}. ",
3535
"'{obj_name}' is type {typ}."
3636
)
3737

0 commit comments

Comments
 (0)