R/print.objectives.R

Defines functions print.stuartManualObjective print.stuartFixedObjective print.stuartEmpiricalObjective

#' @export

print.stuartEmpiricalObjective <- function(x, ...) {
  cat('Empirical STUART objective function with:\n\n')
  cat(x$string)
  cat('\n\nUse ...$func() to apply function to data.')
}

#' @export

print.stuartFixedObjective <- function(x, ...) {
  cat('Fixed STUART objective function with:\n\n')
  cat(x$string)
  cat('\n\nUse ...$func() to apply function to data.')
}

#' @export

print.stuartManualObjective <- function(x, ...) {
  cat('Manual STUART objective function with:\n\n')
  cat(x$string)
  cat('\n\nUse ...$func() to apply function to data.')
}

Try the stuart package in your browser

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

stuart documentation built on June 7, 2023, 6:12 p.m.