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 .Rprofile --
again, please read the documentation carefully.

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Web: http://yihui.name


On Fri, Jan 31, 2014 at 6:18 PM, Jeff Johnson mrjeffto...@gmail.com wrote:
 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 C:\Users\jeffjohn\Dropbox\R\Rlibs\rstudio\html which is
 where I have all of my packages installed. Would you know how I can
 determine what CSS file a given .Rmd file is referencing?

 However, I've tried making a simple change to each of them (first backing
 them up of course) by changing the h1 to small instead of x-large and saving
 the doc, but when I knit the document it does not change anything.

 Any guidance you can provide would be extremely helpful. Again, I'm using
 R-Studio on Windows.


 On Thu, Jan 30, 2014 at 3:54 PM, Jeff Johnson mrjeffto...@gmail.com wrote:

 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, outputFile) {
 require(markdown)
 markdownToHTML(inputFile, outputFile, stylesheet='mymarkdown.css')
   }
 )

 to the top of my testfile.Rmd file so that my file now looks like:

 options(rstudio.markdownToHTML =
   function(inputFile, outputFile) {
 require(markdown)
 markdownToHTML(inputFile, outputFile, stylesheet='mymarkdown.css')
   }
 )

 Title
 

 This is an R Markdown document. Markdown is a simple formatting syntax for
 authoring web pages (click the **Help** toolbar button for more details on
 using R Markdown).

 When you click the **Knit HTML** button a web page will be generated that
 includes both content as well as the output of any embedded R code chunks
 within the document. You can embed an R code chunk like this:

 ```{r}
 summary(cars)
 ```

 But when I knit it, it just writes the options chunk at the top of my
 document. Am I supposed to add something else to get the .rmd file to
 reference the css?

 I'm quite new to programming and R (as if you couldn't tell!), so not sure
 what additional steps I need to add.

 Thanks much.
 Jeff

__
R-help@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.


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 C:\Users\jeffjohn\Dropbox\R\Rlibs\rstudio\html which
is where I have all of my packages installed. Would you know how I can
determine what CSS file a given .Rmd file is referencing?

However, I've tried making a simple change to each of them (first backing
them up of course) by changing the h1 to small instead of x-large and
saving the doc, but when I knit the document it does not change anything.

Any guidance you can provide would be extremely helpful. Again, I'm using
R-Studio on Windows.


On Thu, Jan 30, 2014 at 3:54 PM, Jeff Johnson mrjeffto...@gmail.com wrote:

 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, outputFile) {
 require(markdown)
 markdownToHTML(inputFile, outputFile, stylesheet='mymarkdown.css')
   }
 )

 to the top of my testfile.Rmd file so that my file now looks like:

 options(rstudio.markdownToHTML =
   function(inputFile, outputFile) {
 require(markdown)
 markdownToHTML(inputFile, outputFile, stylesheet='mymarkdown.css')
   }
 )

 Title
 

 This is an R Markdown document. Markdown is a simple formatting syntax for
 authoring web pages (click the **Help** toolbar button for more details on
 using R Markdown).

 When you click the **Knit HTML** button a web page will be generated that
 includes both content as well as the output of any embedded R code chunks
 within the document. You can embed an R code chunk like this:

 ```{r}
 summary(cars)
 ```

 But when I knit it, it just writes the options chunk at the top of my
 document. Am I supposed to add something else to get the .rmd file to
 reference the css?

 I'm quite new to programming and R (as if you couldn't tell!), so not sure
 what additional steps I need to add.

 Thanks much.
 Jeff



 On Thu, Jan 30, 2014 at 1:48 PM, Yihui Xie x...@yihui.name wrote:

 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 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 mrjeffto...@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!




 --
 Jeff




-- 
Jeff

[[alternative HTML version deleted]]

__
R-help@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.


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 = DV, PARTY_ID = 95252415L,
PERSON_FIRST_NAME = Julie, PERSON_LAST_NAME = herlastname,
PERSON_MIDDLE_NAME = NA_character_,
PARTY_NUMBER = 49229698L, ACCOUNT_NUMBER = 104205066L, ABILITEC_LINK =
25455695,
ADDRESS1 = 332 SE SOME RD, ADDRESS2 = NA_character_,
ADDRESS3 = NA_character_, ADDRESS4 = NA_character_, CITY = SOMECITY,
COUNTY = SOMECOUNTY, STATE = OR, PROVINCE = NA_character_,
POSTAL_CODE = 97111-, COUNTRY = US, PRIMARY_PER_TYPE = N,
SELLTOADDR_LOS = DV, LOCATION_ID = 6222438L, SELLTOADDR_SOS = DV,
PARTY_SITE_ID = 7292226L, PRIMARYPHONE_CPOS = DV,
CONTACT_POINT_ID_PCP = 62243903L,
CONTACT_POINT_PURPOSE_PCP = PERSONAL, PHONE_LINE_TYPE = GEN,
PRIMARY_FLAG_PCP = Y, PHONE_COUNTRY_CODE = NA_integer_,
PHONE_AREA_CODE = 244, PHONE_NUMBER = 244, EMAIL_CPOS = DV,
CONTACT_POINT_ID_ECP = 6202L, CONTACT_POINT_PURPOSE_ECP =
NA_character_,
PRIMARY_FLAG_ECP = Y, EMAIL_ADDRESS = someem...@yahoo.com,
BB_PARTY_ID = NA, VALID_COUNTRY = TRUE, VALID_USSTATE = TRUE,
POSTAL_PATTERN = 9-, VALID_USPP = TRUE, FULL_PHONE =
244244,
FULL_PHONE_PATTERN = NA99, FNAME_PATTERN = A,
FNAME_LENGTH = 5L, FNAME_TOKEN_COUNT = 1L, LNAME_LENGTH = 4L,
LNAME_PATTERN = , MNAME_LENGTH = 2L, MNAME_PATTERN =
NA_character_,
MNAME_TOKEN_COUNT = 1L, LNAME_TOKEN_COUNT = 1L, EMAIL_LENGTH = 19L,
VALID_EMAIL = TRUE), .Names = c(PERSONPROFILE_POS, PARTY_ID,
PERSON_FIRST_NAME, PERSON_LAST_NAME, PERSON_MIDDLE_NAME,
PARTY_NUMBER, ACCOUNT_NUMBER, ABILITEC_LINK, ADDRESS1,
ADDRESS2, ADDRESS3, ADDRESS4, CITY, COUNTY, STATE,
PROVINCE, POSTAL_CODE, COUNTRY, PRIMARY_PER_TYPE, SELLTOADDR_LOS,
LOCATION_ID, SELLTOADDR_SOS, PARTY_SITE_ID, PRIMARYPHONE_CPOS,
CONTACT_POINT_ID_PCP, CONTACT_POINT_PURPOSE_PCP, PHONE_LINE_TYPE,
PRIMARY_FLAG_PCP, PHONE_COUNTRY_CODE, PHONE_AREA_CODE,
PHONE_NUMBER, EMAIL_CPOS, CONTACT_POINT_ID_ECP,
CONTACT_POINT_PURPOSE_ECP,
PRIMARY_FLAG_ECP, EMAIL_ADDRESS, BB_PARTY_ID, VALID_COUNTRY,
VALID_USSTATE, POSTAL_PATTERN, VALID_USPP, FULL_PHONE,
FULL_PHONE_PATTERN, FNAME_PATTERN, FNAME_LENGTH, FNAME_TOKEN_COUNT,
LNAME_LENGTH, LNAME_PATTERN, MNAME_LENGTH, MNAME_PATTERN,
MNAME_TOKEN_COUNT, LNAME_TOKEN_COUNT, EMAIL_LENGTH, VALID_EMAIL
), row.names = 1L, class = data.frame)

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!


On Wed, Jan 29, 2014 at 5:57 PM, Yihui Xie x...@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 xieyi...@gmail.com
 Web: http://yihui.name


 On Wed, Jan 29, 2014 at 10:49 AM, Jeff Johnson mrjeffto...@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@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.




-- 
Jeff

[[alternative HTML version deleted]]

__
R-help@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.


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...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k
--- 
Sent from my phone. Please excuse my brevity.

On January 30, 2014 8:34:32 AM PST, Jeff Johnson mrjeffto...@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.

Here's a simple example:
showcode - FALSE
commentchar - NA

You can load this data as 'mydf'...
dput(mydf)
structure(list(PERSONPROFILE_POS = DV, PARTY_ID = 95252415L,
PERSON_FIRST_NAME = Julie, PERSON_LAST_NAME = herlastname,
PERSON_MIDDLE_NAME = NA_character_,
 PARTY_NUMBER = 49229698L, ACCOUNT_NUMBER = 104205066L, ABILITEC_LINK =
25455695,
ADDRESS1 = 332 SE SOME RD, ADDRESS2 = NA_character_,
 ADDRESS3 = NA_character_, ADDRESS4 = NA_character_, CITY = SOMECITY,
COUNTY = SOMECOUNTY, STATE = OR, PROVINCE = NA_character_,
POSTAL_CODE = 97111-, COUNTRY = US, PRIMARY_PER_TYPE = N,
  SELLTOADDR_LOS = DV, LOCATION_ID = 6222438L, SELLTOADDR_SOS = DV,
PARTY_SITE_ID = 7292226L, PRIMARYPHONE_CPOS = DV,
CONTACT_POINT_ID_PCP = 62243903L,
CONTACT_POINT_PURPOSE_PCP = PERSONAL, PHONE_LINE_TYPE = GEN,
PRIMARY_FLAG_PCP = Y, PHONE_COUNTRY_CODE = NA_integer_,
  PHONE_AREA_CODE = 244, PHONE_NUMBER = 244, EMAIL_CPOS = DV,
CONTACT_POINT_ID_ECP = 6202L, CONTACT_POINT_PURPOSE_ECP =
NA_character_,
PRIMARY_FLAG_ECP = Y, EMAIL_ADDRESS = someem...@yahoo.com,
BB_PARTY_ID = NA, VALID_COUNTRY = TRUE, VALID_USSTATE = TRUE,
POSTAL_PATTERN = 9-, VALID_USPP = TRUE, FULL_PHONE =
244244,
FULL_PHONE_PATTERN = NA99, FNAME_PATTERN = A,
FNAME_LENGTH = 5L, FNAME_TOKEN_COUNT = 1L, LNAME_LENGTH = 4L,
LNAME_PATTERN = , MNAME_LENGTH = 2L, MNAME_PATTERN =
NA_character_,
MNAME_TOKEN_COUNT = 1L, LNAME_TOKEN_COUNT = 1L, EMAIL_LENGTH = 19L,
VALID_EMAIL = TRUE), .Names = c(PERSONPROFILE_POS, PARTY_ID,
PERSON_FIRST_NAME, PERSON_LAST_NAME, PERSON_MIDDLE_NAME,
PARTY_NUMBER, ACCOUNT_NUMBER, ABILITEC_LINK, ADDRESS1,
ADDRESS2, ADDRESS3, ADDRESS4, CITY, COUNTY, STATE,
PROVINCE, POSTAL_CODE, COUNTRY, PRIMARY_PER_TYPE,
SELLTOADDR_LOS,
LOCATION_ID, SELLTOADDR_SOS, PARTY_SITE_ID, PRIMARYPHONE_CPOS,
CONTACT_POINT_ID_PCP, CONTACT_POINT_PURPOSE_PCP, PHONE_LINE_TYPE,
PRIMARY_FLAG_PCP, PHONE_COUNTRY_CODE, PHONE_AREA_CODE,
PHONE_NUMBER, EMAIL_CPOS, CONTACT_POINT_ID_ECP,
CONTACT_POINT_PURPOSE_ECP,
PRIMARY_FLAG_ECP, EMAIL_ADDRESS, BB_PARTY_ID, VALID_COUNTRY,
VALID_USSTATE, POSTAL_PATTERN, VALID_USPP, FULL_PHONE,
FULL_PHONE_PATTERN, FNAME_PATTERN, FNAME_LENGTH,
FNAME_TOKEN_COUNT,
LNAME_LENGTH, LNAME_PATTERN, MNAME_LENGTH, MNAME_PATTERN,
MNAME_TOKEN_COUNT, LNAME_TOKEN_COUNT, EMAIL_LENGTH, VALID_EMAIL
), row.names = 1L, class = data.frame)

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!


On Wed, Jan 29, 2014 at 5:57 PM, Yihui Xie x...@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 xieyi...@gmail.com
 Web: http://yihui.name


 On Wed, Jan 29, 2014 at 10:49 AM, Jeff Johnson
mrjeffto...@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]]
 
  __
  

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 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 mrjeffto...@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!

__
R-help@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.


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, outputFile) {
require(markdown)
markdownToHTML(inputFile, outputFile, stylesheet='mymarkdown.css')
  }
)

to the top of my testfile.Rmd file so that my file now looks like:

options(rstudio.markdownToHTML =
  function(inputFile, outputFile) {
require(markdown)
markdownToHTML(inputFile, outputFile, stylesheet='mymarkdown.css')
  }
)

Title


This is an R Markdown document. Markdown is a simple formatting syntax for
authoring web pages (click the **Help** toolbar button for more details on
using R Markdown).

When you click the **Knit HTML** button a web page will be generated that
includes both content as well as the output of any embedded R code chunks
within the document. You can embed an R code chunk like this:

```{r}
summary(cars)
```

But when I knit it, it just writes the options chunk at the top of my
document. Am I supposed to add something else to get the .rmd file to
reference the css?

I'm quite new to programming and R (as if you couldn't tell!), so not sure
what additional steps I need to add.

Thanks much.
Jeff



On Thu, Jan 30, 2014 at 1:48 PM, Yihui Xie x...@yihui.name wrote:

 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 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 mrjeffto...@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!




-- 
Jeff

[[alternative HTML version deleted]]

__
R-help@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.


[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 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@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.


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 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@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.

__
R-help@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.


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

__
R-help@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.