ez.print | R Documentation |
cat
, cat(string, "\n", sep="")wrapper of cat
, cat(string, "\n", sep="")
ez.print(
string,
file = "",
append = TRUE,
sep = "",
fill = FALSE,
labels = NULL
)
string |
a single character vector, other types will be auto converted with as.character() by cat()
|
file |
filepath, default ”=print to console only; if provided, save to a file and print to console |
append |
T/F |
sep |
default empty. a character vector of strings to append after each element. |
fill |
a logical or (positive) numeric controlling how the output is broken into successive lines. If FALSE (default), 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. Non-positive fill values are ignored, with a warning. |
labels |
character vector of labels for the lines printed. Ignored if fill is FALSE. |
do not use R print
, not actually printing \n
each print generates a new line automatically
sprintf
, ez.log
, ez.join
# cat("hello","world",file="output.txt",sep="\n",append=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.