Learn R Programming

rawr (version 0.1.3)

output_to_file: Open contents in a new tempfile or file

Description

Open contents in a new tempfile or file

Usage

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

Run this code
# NOT RUN {
# }
# NOT RUN {
code_sample <- "#Sample code\nx <- 6\n2 * 2"
output_to_file(code_sample)
# }
# NOT RUN {



# }

Run the code above in your browser using DataLab