here_doc: Wraps a script with shell commands to write it to a file....

View source: R/preload.r

here_docR Documentation

Wraps a script with shell commands to write it to a file. Sometimes referred to as a "here document"

Description

Wraps a script with shell commands to write it to a file. Sometimes referred to as a "here document"

Usage

here_doc(script, file_name, eof)

Arguments

script

A vector of strings, usually each a shell command.

file_name

A string giving the file name to use. Careful not to conflict with an existing file name as it will be silently deleted and overwritten.

eof

A string to use for end-of-file. Must not occurr within the script and must be unique among potential nested uses of this function for a script.

Value

A vector of strings, each string a line of the script.


RBigData/launchr documentation built on April 28, 2022, 10:33 a.m.