R/show.R

#'
#' @title Show an object of class \linkS4class{StfwfSchema}.
#'
#' @description \code{show} displays the slot \code{df} of the input \linkS4class{StfwfSchema} object excluding
#' the description column.
#'
#' @param object Object of class \linkS4class{StfwfSchema}.
#'
#' @return Return invisible \code{\link{NULL}}.
#'
#' @examples
#' # A trivial example
#' show(new(Class = 'StfwfSchema'))
#'
#' @include StfwfSchema-class.R getdf.R
#'
#' @export
setGeneric("show",
           function(object) {
             standardGeneric("show")})

#'
#' @rdname show
#'
#' @export
setMethod(
  f = "show",
  signature(object = "StfwfSchema"),
  function(object){

    output <- getdf(object)
    output$description <- NULL
    methods::show(output)
    invisible(NULL)
  }
)
david-salgado/fastReadfwf documentation built on Dec. 25, 2021, 12:43 p.m.