output_to_file: Open contents in a new tempfile or file

Description Usage Arguments Examples

View source: R/output_to_file.R

Description

Open contents in a new tempfile or file

Usage

1
output_to_file(content, file_path)

Arguments

content

Some (text) content to go into the new file

file_path

Specifies a file path and file name.

Examples

1
2
3
4
5
## Not run: 
code_sample <- "#Sample code\nx <- 6\n2 * 2"
output_to_file(code_sample)

## End(Not run)

rawr documentation built on May 17, 2021, 5:07 p.m.

Related to output_to_file in rawr...