Steves Steves - 3 years ago 160
R Question

How to export lintr output to a file?

I am writing some scripts in R and our standard is use lintr for standardization of the code.
Please advice how can I export the output of the lint function to a txt file for example.
Thanks in advance!

Answer Source

You can use the capture.output() function:

capture.output(lint("myscript.R"), file="lint_output.txt)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download