Closed henningsway closed 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. :)
It looks like there are three key pieces:
str()
doesn't overflow: https://github.com/hadley/adv-r/blame/master/common.R#L26
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:
dplyr::summarise_cols
-output (fixed by abbreviating and hardcoding the function source)