R/utils.R

Defines functions format_num asrt stop2

#' @noRd
stop2 <- function(...) stop(..., call. = FALSE)

#' @noRd
asrt <- function(expr, ...) if (!expr) stop2(...)

#' @noRd
format_num <- function(x) {
  format(
    x,
    big.mark = ",", scientific = FALSE, trim = TRUE
  )
}
ropensci/patentsview documentation built on June 11, 2025, 3:20 p.m.