R/fprintf.R

Defines functions fprintf

Documented in fprintf

##
##  f p r i n t f . R  Formatted printing to stdout or file
##


fprintf <- function(fmt, ..., file = "", append = FALSE) {
    mystr <- sprintf(fmt, ...)
    cat(mystr, file = file, append = append)
    invisible(nchar(mystr))
}

Try the pracma package in your browser

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

pracma documentation built on March 19, 2024, 3:05 a.m.