#sink() #file_handling #directing_output_to_file #writing_resluts_to_file #lets_grow_together
File handling is a common task in any programming language.
The output may directly be written to a file and not displayed on the console using the sink function.
This is particularly useful when the input or output data is huge and also need to be kept as a permanent record.
In this lecture, I discuss how to use the sink() function in R to direct output to file instead of console.
This is in addition to the 4 methods discussed earlier in lecture R_15.