ezWrite: Write in a single line

View source: R/io.R

ezWriteR Documentation

Write in a single line

Description

Concatenates its arguments and writes it as a single line.

Usage

ezWrite(..., sep = "", collapse = " ", con = stdout())

Arguments

...

the arguments to concatenate.

sep

a character specifying how to separate the arguments from each other.

collapse

a character specifying how to separate entries of each argument from each other.

con

the connection to the file to write in.

Value

Returns a single line written into a separate file.

Author(s)

Rehrauer, Hubert

Schmid, Peter

Examples

con = file("example.txt", "w")
ezWrite("concatenates","these",4,"arguments",con=con,sep=" ")
close(con)

uzh/ezRun documentation built on May 9, 2024, 6:16 p.m.