powered by
Open contents in a new tempfile or file
output_to_file(content, file_path)
Some (text) content to go into the new file
Specifies a file path and file name.
# 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