Thursday, August 6, 2015

Send script output to a file in R

In R if you want to execute script and see the output in terminal use:

source("script.txt", echo=T)

If the output is too big you may want to send the output to a file using sink


Place this in front of your code in the script and source the script (echo is not needed)


No comments:

Post a Comment