R/str_tableschema.R

Defines functions str.tableschema

#' @export
str.tableschema <- function(object, ...) {
  fields <- dp_field_names(object)
  cat("Table Schema [", length(fields), "] ", sep = "")
  utils::str(fields, give.attr = FALSE, comp.str ="", give.head = FALSE)
}

Try the datapackage package in your browser

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

datapackage documentation built on June 8, 2025, 1:25 p.m.