Description Usage Arguments Details Note References Examples
custom_css
- Generate the components necessary for a custom css for
use with RStudio and knitr.
css_styles
- View the available built in style.css files.
css_style_change
- Change a style.css.
css_styl_add
- Add a style.css. Defaults to
‘~PRESENTATION/assets/css’.
custom_pandoc_style
- Generate the components necessary for a custom
pandoc styling for use with RStudio and knitr.
1 2 3 4 5 6 7 8 9 10 | custom_css(rprofile = FALSE, loc = QP("REPORT"), style.css = NULL,
source = TRUE)
css_styles()
css_style_change(style.css, cur.style.css = QP("REPORT/css/style.css"))
css_style_add(loc = QP("PRESENTATION/assets/css"))
custom_pandoc_style(rprofile = FALSE, loc = QP("REPORT"), source = TRUE)
|
rprofile |
logical. If |
loc |
Path to the report location where the custom css should be placed.
If |
style.css |
A path to a style.css file that will be used as
the ‘~/css/style.css’. Also may take a character string indicating one
of the reports package's built in style.css (see
|
source |
logical. If |
cur.style.css |
The location of the current style.css (this will be replaced). |
custom_css
- The user must add the custom contents to the
custom css located in ‘~/css/style.css’.
css_styles
- prints a list of available style.css templates
available within the reports package for use with the custom_css
argument style.css
. Feel free to submit your own to the reports
package reports.rpackage@gmail.com marked with style.css
template in the subject line.
See https://github.com/trinker/style.css_examples for examples utilizing the internal reports package style.css.
The user has to source before the custom styles will be applied. The
user may specify rfprofile = TRUE
to add the style.R to the
.Rprofile for sourcing upon startup. Otherwise, the user must open
the style.R as the active tab in RStudio, check the 'Source on Save'
box and the click the save icon.
http://www.rstudio.com/ide/docs/authoring/markdown_custom_rendering
1 2 3 | ## custom_css(TRUE, style.css = css_styles()[1])
css_styles()
## css_style_change("rinker_vignette")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.