I use Lyx (2.1.4) with knitr (1.10.5). I have a lot of trouble having the code chunks respect the width that I tried setting through various ways:
- In the chunk options (
options("width")=50at the top of my document
opts_chunk$set(width=50)also at the top of my document
The results are always the same:
What am I missing? Any help appreciated.
Edit: I realized that it has to do with the quoted string which won't be broken into several lines. Without long strings, the width setting is respected. (Still, the problem remains unsolved.)