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)

stevecondylios/rawr documentation built on Oct. 23, 2021, 12:11 a.m.