Learn R Programming

beastier (version 2.5)

save_lines: Save text (a container of strings) to a file

Description

Save text (a container of strings) to a file

Usage

save_lines(filename, lines)

Value

Nothing. Will save the lines to file

Arguments

filename

filename of the file to have the text written to

lines

lines of text to be written to file

Author

Richèl J.C. Bilderbeek

Examples

Run this code
text <- c("hello", "world")
filename <- get_beastier_tempfilename()
save_lines(filename = filename, lines = text)
file.remove(filename)

remove_beaustier_folders()

Run the code above in your browser using DataLab