More listings options

The listings package has tons of options that you can use, so be sure to read its manual to know its full power. Below is an example to show how to break lines in the error messages, and you can download its the Rnw source. The key is the option breaklines=true.

If you have any questions, please consider asking them on StackOverflow, where you may get more attention and fast answers.