write.simplest: Append or write a vector to standard file, one element per...

View source: R/ReadWriter.R

write.simplestR Documentation

Append or write a vector to standard file, one element per line.

Description

Alternative to clipboard. This function takes a vector and appends it to a specified file.

Usage

write.simplest(
  vec = LETTERS[1:11],
  append = TRUE,
  header = NULL,
  prefix = kppws(substitute(vec), idate()),
  file_path = "/groups/knoblich/Projects/connectomics/Analysis/__clipboard.txt"
)

Arguments

vec

A vector to be written to the file. Default: LETTERS[1:11].

append

Logical flag indicating whether to append the vector to the file. Default: TRUE.

header

A string to be added to the header line (before the vector). Default: NULL.

prefix

A prefix to the header. Default: kppws(substitute(vec), idate()).

file_path

A string specifying the file path where the vector will be written. Default: "/groups/knoblich/Projects/connectomics/Analysis/__clipboard.txt".

Value

A message indicating the length of the vector and the file path to which it was written.

Examples

## Not run: 
write.simplest(letters[1:5], append = TRUE)

## End(Not run)


vertesy/ReadWriter documentation built on Nov. 24, 2024, 10:40 p.m.