![]() ![]() If anyone has a suggestion to make the capture.output() version work, please let me know. ![]() Residual standard error: 15.38 on 48 degrees of freedom R Markdown renders to four presentation formats: beamerpresentation - PDF presentations with beamer ioslidespresentation - HTML presentations with ioslides slidypresentation - HTML presentations with slidy powerpointpresentation - PowerPoint presentation revealjs::revealjspresentation - HTML presentations with reveal. This completely disregards the main width, but unfortunately it is not an optimal solution, since it also does not respect the full page width and requires you to copy-paste the output:. I then tried to make it more general by using capture.output(), but unfortunately I did not get that to work. I faced this problem too and eventually solved it by concatenating the output with cat(). This is my first answer here and more of an ad-hoc solution than a real fullwidth solution for output. Knitr::opts_chunk$set(tidy = FALSE, cache.extra = # invalidate cache when the tufte version changes ![]() Is there a way to have R output fullwidth ? I know there is a fullwidth environment but it having a R chunk inside this environment prevents pandoc to build the pdf due to the leading hashes in front of R output (Removing these hashes by specifying the chunk argument comment=NA produce a pdf but the formatting of the R output is lost). I cannot manage to make these R outputs occupy the full width of the page (I'd like to have something similar to the fig.fullwidth chunk argument for figures). However, some of the R outputs I'd like to have in the document have a width larger than the width of the handout (see the summary of a lm model in the example below). I'm writing some course material using Rmarkdown and the tufte package. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |