R/print.oa.R

print.oa <- function (x, ...)
{
    ## should move to DoE.base later on
    xnam <- deparse(substitute(x))
    if (!"oa" %in% class(x))
        stop("this print method is for class oa only")
    attrs <- setdiff(names(attributes(x)), c("origin", "class",
        "dim", "dimnames"))
    info <- attr(x, "MIPinfo")$info
    for (a in attrs) attr(x, a) <- NULL
    print.default(x, ...)
    if (!is.null(info$stati)) {
        cat("optimization results:\\n")
        print(unlist(info$stati))
    }
    if (length(attrs) > 0) {
        cat("\\nfurther attribute(s)", "(accessible with attr(",
            xnam, ", attrname)):", fill = TRUE)
        print(attrs)
    }
}

Try the DoE.base package in your browser

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

DoE.base documentation built on Nov. 15, 2023, 1:06 a.m.