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

2014-02-03 Thread Yihui Xie
R.css is irrelevant. The default CSS has already been mentioned in the documentation: https://support.rstudio.com/hc/en-us/articles/200552186-Customizing-Markdown-Rendering You should not define the rstudio.markdownToHTML option _inside_ the Rmd document: do it in the current R console, or in

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

2014-01-31 Thread Jeff Johnson
Yihui/Jeff, I'm trying to determine where the default CSS file is located as I don't see this in any of the documentation. I can definitely find a markdwon.css file in C:\Program Files\RStudio\resources I also see an R.css file in that directory. I also have R.css in

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

2014-01-30 Thread Jeff Johnson
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. Here's a simple example: showcode - FALSE commentchar - NA You can load this data as 'mydf'... dput(mydf) structure(list(PERSONPROFILE_POS

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

2014-01-30 Thread Jeff Newmiller
This sounds like a classic you need to write a custom CSS file problem... Which is off-topic here, so is homework for you. --- Jeff NewmillerThe . . Go Live...

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

2014-01-30 Thread Yihui Xie
Exactly. Please see RStudio documentation: https://support.rstudio.com/hc/en-us/articles/200552186-Customizing-Markdown-Rendering Regards, Yihui -- Yihui Xie xieyi...@gmail.com Web: http://yihui.name On Thu, Jan 30, 2014 at 10:57 AM, Jeff Newmiller jdnew...@dcn.davis.ca.us wrote: This sounds

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

2014-01-30 Thread Jeff Johnson
Thanks Yihui and Jeff. I've retrieved the default CSS file and made a tweak to it (changing a header 1 size just to test it) and saved it to the same local directory as my .Rmd file using the name 'mymarkdown.css' for testing. I've added: options(rstudio.markdownToHTML = function(inputFile,

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

2014-01-29 Thread Jeff Johnson
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

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

2014-01-29 Thread Yihui Xie
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 xieyi...@gmail.com Web: http://yihui.name On Wed, Jan 29, 2014 at 10:49 AM, Jeff Johnson mrjeffto...@gmail.com wrote: Hi

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

2014-01-29 Thread Jeff Johnson
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