

   cat {base}                                   R Documentation

   CCoonnccaatteennaattee aanndd PPrriinntt

   DDeessccrriippttiioonn::

        Prints the arguments, coercing them if necessary to
        character mode first.

   UUssaaggee::

        cat(... , file = "", sep = " ", fill = FALSE, labels = NULL,
            append = FALSE)

   AArrgguummeennttss::

        ...: R objects which are coerced to character strings,
             concatenated, and printed, with the remaining
             arguments controlling the output.

       file: character string naming the file to print to.  If
             `""' (the default), `cat' prints to the standard
             output.

        sep: character string to insert between the objects to
             print.

       fill: a logical or numeric controlling how the output is
             broken into successive lines.  If `FALSE', only
             newlines created explicitly by `\n' are printed.
             Otherwise, the output is broken into lines with
             print width equal to the option `width' if `fill'
             is `TRUE', or the value of `fill' if this is
             numeric.

     labels: character vector of labels for the lines printed.
             Ignored if `fill' is `FALSE'.

     append: if `TRUE', output will be appended to `file'; oth-
             erwise, it will overwrite the contents of `file'.

   DDeettaaiillss::

        `cat' converts its arguments to character strings, con-
        catenates them, separating them by the given `sep='
        string, and then prints them.

        No linefeeds are printed unless explicitly requested by
        `"\n"' or if generated by filling (if argument `fill'
        is `TRUE' or numeric.)

        `cat' is useful for producing output in user defined
        functions.

   VVaalluuee::

        None (invisible `NULL').

   SSeeee AAllssoo::

        `print', `format'

   EExxaammpplleess::

        ## print an informative message
        cat("iteration = ", iter <- iter + 1, "\n")

