R/print.NEST.R

Defines functions print.NEST

Documented in print.NEST

#' Print function for NEST objects
#'
#' @param x a list of class NEST Output from \code{\link{NEST}} function.
#' @param ... Further arguments for print.
#'
#' @export
#' @method print NEST
#'
#' @examples
#' NEST(test_models$baseline$cormat, N = 500)
#'
print.NEST <- function(x, ...) {

  nfac <- x$n_factors

  cat("\n")

  if(nfac == 1){
    cat("NEST suggests", crayon::bold(nfac), "factor")
    cat("\n")
    cat("\n")
  } else {
    cat("NEST suggests", crayon::bold(nfac), "factors")
    cat("\n")
    cat("\n")
  }

}

Try the EFAtools package in your browser

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

EFAtools documentation built on June 19, 2025, 9:07 a.m.