R/print.gpt.R

Defines functions print.gpt

Documented in print.gpt

#' Print methods for `'gpt'` objects
#'
#' @param x an object of class `'gpt'`.
#' @param ... other print arguments.
#'
#' @return Information about how to find answer data sets and pricing information.
#' @export
#'
#' @examples
#' \dontrun{
#' print(x)
#' }


print.gpt <- function(x, ...){

  if ("answer_data_aggregated" %in% names(x)){
    print <- cat(paste0("\nFind the final result dataset via result_object$answer_data_aggregated"))
  } else {
    print <- cat(paste0("\nFind the final result dataset via result_object$answer_data"))
  }

  print

}

Try the AIscreenR package in your browser

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

AIscreenR documentation built on April 3, 2025, 7:11 p.m.