Tazinho / Advanced-R-Solutions

Set of solutions for the Advanced R programming book
https://advanced-r-solutions.rbind.io/
289 stars 119 forks source link

Improve PDF Output #151

Closed henningsway closed 4 years ago

henningsway commented 5 years ago

We have a first PDF draft of this book, which is great. :tada:

Let's use this issue to keep track of things thats (may) need to be improved:

henningsway commented 4 years ago

I tried to shorten/control the width of the R output in the PDF today. Played around with options(width =80) in common.R and also tried the Latex listings package as recommended in https://bookdown.org/yihui/rmarkdown-cookbook/text-width.html (which lead to ! LaTeX Error: Environment Shaded undefined.). It didn't work yet, we may have an issue here.

@hadley could you comment on your experiences with the "Advanced R"-pdf? I haven't see any specific options with regard to this issue set in the _output.yaml or common.R definitions. Did you need to control the width of the R output and if so, what did you do about it. :)

hadley commented 4 years ago

It looks like there are three key pieces: