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

Yihui Xie xie at yihui.name
Thu Jan 30 22:48:56 CET 2014


Exactly. Please see RStudio documentation:
https://support.rstudio.com/hc/en-us/articles/200552186-Customizing-Markdown-Rendering

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


On Thu, Jan 30, 2014 at 10:57 AM, Jeff Newmiller
<jdnewmil at dcn.davis.ca.us> wrote:
> This sounds like a classic "you need to write a custom CSS file" problem... Which is off-topic here, so is homework for you.
>
> On January 30, 2014 8:34:32 AM PST, Jeff Johnson <mrjefftoyou at gmail.com> wrote:
>>Hi Yihui,
>>
>>The package I have installed is "knitr". To generate the HTML, I run
>>Knit
>>HTML from within R Studio version .98.490 (there's an icon to initiate
>>it.
>>
....
>>
>>You can load that dataset, then:
>>Print the column names
>>```{r, echo=showcode, comment=commentchar}
>>colnames(mydf)
>>```
>>The resulting font is a couple of points larger than I'd like. I'd like
>>to
>>be able to control this either globally or at the code chunk level.
>>
>>Thanks for your help with this!




More information about the R-help mailing list