R/print.custommodel.R

print.custommodel <- 
function (x, deparse = FALSE, ...) 
{
    cat("Object of class \"custommodel\":\n\n")
    if (deparse) {
        cat("structure(\nc(\"", x[1], "\",\n")
        for(i in x[2:(length(x)-1)])
            cat("\"", i, "\",\n")
        cat("\"", x[length(x)], "\"),\n")
        cat("class = \"custommodel\")\n")
    } else {
        for(i in x)
            cat(i, "\n")
    }
    invisible(x)
}

Try the dclone package in your browser

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

dclone documentation built on July 10, 2023, 2:03 a.m.