modified .rnw file