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

Jeff Johnson mrjefftoyou at gmail.com
Thu Jan 30 03:37:00 CET 2014


Thank you Yihui for responding. I'll reply with details when I get in the office tomorrow am. I'm using Rstudio and added the knitr package if that helps. I'll check details and provide an example tomorrow am. 

I appreciate your help. 

Sent from my iPhone

> On Jan 29, 2014, at 5:57 PM, Yihui Xie <xie at yihui.name> wrote:
> 
> 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