R/my-eyes-are-bleeding.R

Defines functions jsonprint str2 str1

str1 <- function(...) utils::str(..., max.level = 1, list.len = 6)
str2 <- function(...) utils::str(..., max.level = 2, list.len = 6)
jsonprint <- function(x) {
  if (!requireNamespace("jsonlite", quietly = TRUE)) {
    stop("Install the jsonlite package if you want to use `jsonprint()`.")
  }
  print(jsonlite::toJSON(unclass(x), pretty = TRUE, auto_unbox = TRUE))
  invisible(x)
}

Try the repurrrsive package in your browser

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

repurrrsive documentation built on Dec. 28, 2022, 2:34 a.m.