R/utils.R

Defines functions unused_dots print.textmodel_newsmap

#' @export
#' @method print textmodel_newsmap
print.textmodel_newsmap <- function(x, ...) {
    cat("\nCall:\n")
    print(x$call)
    cat("\n")
}

unused_dots <- function(...) {
    arg <- names(list(...))
    if (length(arg) == 1) {
        warning(arg[1], " argument is not used.\n", call. = FALSE)
    } else if (length(arg) > 1) {
        warning(paste0(arg, collapse = ", "), " arguments are not used.\n", call. = FALSE)
    }
}

Try the newsmap package in your browser

Any scripts or data that you put into this service are public.

newsmap documentation built on Oct. 7, 2023, 5:07 p.m.