writeR: Write R Script

Description Usage Arguments Value

View source: R/other.R

Description

This function saves a character string as an R script. By default, this script gets stored in a temporary directory as a temporarily file. This function returns the file path for the saved R script for later use (e.g., via qsub).

Usage

1
writeR(..., file = paste0(tempfile(), ".R"), preview = FALSE)

Arguments

...

Any number of character strings or R expressions to join together and save as an R script.

file

A character string. The file path, including directory, where to save the new script. Defaults to a temporary file name.

preview

A logical scalar. Toggles whether to preview the script in the console before saving it. Defaults to FALSE.

Value

The file path for the saved R script.


tpq/miSciTools documentation built on Sept. 16, 2019, 4:43 p.m.