[R] Controlling font size on code chunk outputs using Knitr

Yihui Xie xie at yihui.name
Thu Jan 30 02:57:11 CET 2014


Please provide a minimal example -- are you using R Markdown or R
HTML? Both can produce HTML output:
http://yihui.name/knitr/demo/minimal/

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Web: http://yihui.name


On Wed, Jan 29, 2014 at 10:49 AM, Jeff Johnson <mrjefftoyou at gmail.com> wrote:
> Hi there,
> I'm currently using knitr to generate an html file, however the output of
> my code is in a font size that's larger than I desire. I've been looking
> through various options for controlling the font size of the code results,
> such as the knitr manual, opts_chunk, and latex.
>
> The actual code itself is not being outputted as desired (I set echo=FALSE
> intentionally). However, I wish to make the results of executing the code a
> couple of font sizes smaller. I'll likely wish to have all code output
> chunks be smaller, so a global setting is fine, though I would also
> appreciate understanding how to control it at the chunk level as well.
>
> Does any one have a recommendation on how to do this? Lots of discussion on
> Google, but I don't see any tangible results. I'm still pretty new to R
> however.
>
> Thanks in advance.
> --
> Jeff
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list