Переглянути джерело

* Re-document for CRAN

tags/v0.4.2
Garrick Aden-Buie 3 роки тому
джерело
коміт
b6ed374c83
Не вдалося знайти GPG ключ що відповідає даному підпису
13 змінених файлів з 52 додано та 48 видалено
  1. +1
    -1
      DESCRIPTION
  2. +4
    -3
      man/style_duo.Rd
  3. +7
    -9
      man/style_duo_accent.Rd
  4. +7
    -9
      man/style_duo_accent_inverse.Rd
  5. +4
    -3
      man/style_mono_accent.Rd
  6. +4
    -3
      man/style_mono_accent_inverse.Rd
  7. +4
    -3
      man/style_mono_dark.Rd
  8. +4
    -3
      man/style_mono_light.Rd
  9. +4
    -3
      man/style_solarized_dark.Rd
  10. +4
    -3
      man/style_solarized_light.Rd
  11. +6
    -5
      man/style_xaringan.Rd
  12. +2
    -2
      man/theme_xaringan_set_defaults.Rd
  13. +1
    -1
      man/xaringanthemer-package.Rd

+ 1
- 1
DESCRIPTION Переглянути файл

@@ -40,4 +40,4 @@ Config/Needs/website: pkgdown
Config/testthat/edition: 3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.2
RoxygenNote: 7.2.1

+ 4
- 3
man/style_duo.Rd Переглянути файл

@@ -51,8 +51,7 @@ style_duo(
header_background_text_color = background_color,
header_background_padding = NULL,
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title", "middle",
"bottom"),
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9rem",
text_font_google = NULL,
text_font_family = xaringanthemer_font_default("text_font_family"),
@@ -447,7 +446,9 @@ colors.
To use the styles created by this theme function, make sure
that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML
header. If you change the name of the output file using the \code{outfile}
argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
argument, use that name instead of the default file name.

\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
xaringan::moon_reader:
css: xaringan-themer.css
}\if{html}{\out{</div>}}

+ 7
- 9
man/style_duo_accent.Rd Переглянути файл

@@ -13,8 +13,7 @@ style_duo_accent(
header_color = primary_color,
background_color = white_color,
link_color = choose_dark_or_light(secondary_color, primary_color, secondary_color),
text_bold_color = choose_dark_or_light(secondary_color, primary_color,
secondary_color),
text_bold_color = choose_dark_or_light(secondary_color, primary_color, secondary_color),
text_slide_number_color = primary_color,
padding = "16px 64px 16px 64px",
background_image = NULL,
@@ -28,11 +27,9 @@ style_duo_accent(
inverse_background_color = secondary_color,
inverse_text_color = choose_dark_or_light(secondary_color, black_color, white_color),
inverse_text_shadow = FALSE,
inverse_header_color = choose_dark_or_light(secondary_color, black_color,
white_color),
inverse_header_color = choose_dark_or_light(secondary_color, black_color, white_color),
inverse_link_color = link_color,
title_slide_text_color = choose_dark_or_light(primary_color, black_color,
white_color),
title_slide_text_color = choose_dark_or_light(primary_color, black_color, white_color),
title_slide_background_color = primary_color,
title_slide_background_image = NULL,
title_slide_background_size = NULL,
@@ -56,8 +53,7 @@ style_duo_accent(
header_background_text_color = background_color,
header_background_padding = NULL,
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title", "middle",
"bottom"),
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9rem",
text_font_google = NULL,
text_font_family = xaringanthemer_font_default("text_font_family"),
@@ -466,7 +462,9 @@ accents on select elements (headers, bold text, etc.).
To use the styles created by this theme function, make sure
that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML
header. If you change the name of the output file using the \code{outfile}
argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
argument, use that name instead of the default file name.

\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
xaringan::moon_reader:
css: xaringan-themer.css
}\if{html}{\out{</div>}}

+ 7
- 9
man/style_duo_accent_inverse.Rd Переглянути файл

@@ -13,8 +13,7 @@ style_duo_accent_inverse(
header_color = primary_color,
background_color = black_color,
link_color = choose_dark_or_light(secondary_color, secondary_color, primary_color),
text_bold_color = choose_dark_or_light(secondary_color, secondary_color,
primary_color),
text_bold_color = choose_dark_or_light(secondary_color, secondary_color, primary_color),
text_slide_number_color = primary_color,
padding = "16px 64px 16px 64px",
background_image = NULL,
@@ -28,11 +27,9 @@ style_duo_accent_inverse(
inverse_background_color = secondary_color,
inverse_text_color = choose_dark_or_light(secondary_color, black_color, white_color),
inverse_text_shadow = FALSE,
inverse_header_color = choose_dark_or_light(secondary_color, black_color,
white_color),
inverse_header_color = choose_dark_or_light(secondary_color, black_color, white_color),
inverse_link_color = link_color,
title_slide_text_color = choose_dark_or_light(primary_color, black_color,
white_color),
title_slide_text_color = choose_dark_or_light(primary_color, black_color, white_color),
title_slide_background_color = primary_color,
title_slide_background_image = NULL,
title_slide_background_size = NULL,
@@ -57,8 +54,7 @@ style_duo_accent_inverse(
header_background_text_color = background_color,
header_background_padding = NULL,
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title", "middle",
"bottom"),
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9rem",
text_font_google = NULL,
text_font_family = xaringanthemer_font_default("text_font_family"),
@@ -468,7 +464,9 @@ for color accents on select elements (headers, bold text, etc.).
To use the styles created by this theme function, make sure
that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML
header. If you change the name of the output file using the \code{outfile}
argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
argument, use that name instead of the default file name.

\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
xaringan::moon_reader:
css: xaringan-themer.css
}\if{html}{\out{</div>}}

+ 4
- 3
man/style_mono_accent.Rd Переглянути файл

@@ -51,8 +51,7 @@ style_mono_accent(
header_background_text_color = background_color,
header_background_padding = NULL,
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title", "middle",
"bottom"),
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9rem",
text_font_google = NULL,
text_font_family = xaringanthemer_font_default("text_font_family"),
@@ -451,7 +450,9 @@ accents on select elements (headers, bold text, etc.).
To use the styles created by this theme function, make sure
that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML
header. If you change the name of the output file using the \code{outfile}
argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
argument, use that name instead of the default file name.

\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
xaringan::moon_reader:
css: xaringan-themer.css
}\if{html}{\out{</div>}}

+ 4
- 3
man/style_mono_accent_inverse.Rd Переглянути файл

@@ -51,8 +51,7 @@ style_mono_accent_inverse(
header_background_text_color = background_color,
header_background_padding = NULL,
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title", "middle",
"bottom"),
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9rem",
text_font_google = NULL,
text_font_family = xaringanthemer_font_default("text_font_family"),
@@ -452,7 +451,9 @@ for color accents on select elements (headers, bold text, etc.).
To use the styles created by this theme function, make sure
that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML
header. If you change the name of the output file using the \code{outfile}
argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
argument, use that name instead of the default file name.

\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
xaringan::moon_reader:
css: xaringan-themer.css
}\if{html}{\out{</div>}}

+ 4
- 3
man/style_mono_dark.Rd Переглянути файл

@@ -51,8 +51,7 @@ style_mono_dark(
header_background_text_color = background_color,
header_background_padding = NULL,
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title", "middle",
"bottom"),
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9rem",
text_font_google = NULL,
text_font_family = xaringanthemer_font_default("text_font_family"),
@@ -452,7 +451,9 @@ A dark monotone theme based around a single color.
To use the styles created by this theme function, make sure
that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML
header. If you change the name of the output file using the \code{outfile}
argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
argument, use that name instead of the default file name.

\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
xaringan::moon_reader:
css: xaringan-themer.css
}\if{html}{\out{</div>}}

+ 4
- 3
man/style_mono_light.Rd Переглянути файл

@@ -51,8 +51,7 @@ style_mono_light(
header_background_text_color = background_color,
header_background_padding = NULL,
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title", "middle",
"bottom"),
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9rem",
text_font_google = NULL,
text_font_family = xaringanthemer_font_default("text_font_family"),
@@ -452,7 +451,9 @@ A light monotone theme based around a single color.
To use the styles created by this theme function, make sure
that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML
header. If you change the name of the output file using the \code{outfile}
argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
argument, use that name instead of the default file name.

\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
xaringan::moon_reader:
css: xaringan-themer.css
}\if{html}{\out{</div>}}

+ 4
- 3
man/style_solarized_dark.Rd Переглянути файл

@@ -48,8 +48,7 @@ style_solarized_dark(
header_background_text_color = background_color,
header_background_padding = NULL,
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title", "middle",
"bottom"),
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9rem",
text_font_google = NULL,
text_font_family = xaringanthemer_font_default("text_font_family"),
@@ -433,7 +432,9 @@ Works well with "\code{highlightStyle: solarized-dark}" or
To use the styles created by this theme function, make sure
that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML
header. If you change the name of the output file using the \code{outfile}
argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
argument, use that name instead of the default file name.

\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
xaringan::moon_reader:
css: xaringan-themer.css
}\if{html}{\out{</div>}}

+ 4
- 3
man/style_solarized_light.Rd Переглянути файл

@@ -48,8 +48,7 @@ style_solarized_light(
header_background_text_color = background_color,
header_background_padding = NULL,
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title", "middle",
"bottom"),
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9rem",
text_font_google = NULL,
text_font_family = xaringanthemer_font_default("text_font_family"),
@@ -433,7 +432,9 @@ Works well with "\code{highlightStyle: solarized-dark}" or
To use the styles created by this theme function, make sure
that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML
header. If you change the name of the output file using the \code{outfile}
argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
argument, use that name instead of the default file name.

\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
xaringan::moon_reader:
css: xaringan-themer.css
}\if{html}{\out{</div>}}

+ 6
- 5
man/style_xaringan.Rd Переглянути файл

@@ -51,8 +51,7 @@ style_xaringan(
header_background_text_color = background_color,
header_background_padding = NULL,
header_background_content_padding_top = "7rem",
header_background_ignore_classes = c("normal", "inverse", "title", "middle",
"bottom"),
header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"),
text_slide_number_font_size = "0.9rem",
text_font_google = NULL,
text_font_family = xaringanthemer_font_default("text_font_family"),
@@ -435,15 +434,17 @@ Creates a customized Xaringan theme CSS file.
}
\section{Functions}{
\itemize{
\item \code{xaringanthemer_font_default}: Default values for font family, weight, URLs and
\item \code{xaringanthemer_font_default()}: Default values for font family, weight, URLs and
font fallbacks.
}}

}}
\section{Usage}{
To use the styles created by this theme function, make sure
that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML
header. If you change the name of the output file using the \code{outfile}
argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
argument, use that name instead of the default file name.

\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output:
xaringan::moon_reader:
css: xaringan-themer.css
}\if{html}{\out{</div>}}

+ 2
- 2
man/theme_xaringan_set_defaults.Rd Переглянути файл

@@ -47,10 +47,10 @@ defaults with \code{theme_xaringan_restore_defaults()}. By default,
}
\section{Functions}{
\itemize{
\item \code{theme_xaringan_restore_defaults}: Restore previous or standard
\item \code{theme_xaringan_restore_defaults()}: Restore previous or standard
\pkg{ggplot2} \emph{geom} defaults.
}}

}}
\seealso{
Other xaringanthemer ggplot2 themes:
\code{\link{theme_xaringan_base}()},

+ 1
- 1
man/xaringanthemer-package.Rd Переглянути файл

@@ -6,7 +6,7 @@
\alias{xaringanthemer-package}
\title{xaringanthemer: Custom 'xaringan' CSS Themes}
\description{
\if{html}{\figure{logo.png}{options: align='right' alt='logo' width='120'}}
\if{html}{\figure{logo.png}{options: style='float: right' alt='logo' width='120'}}

Create beautifully color-coordinated and customized themes for your 'xaringan' slides, without writing any CSS. Complete your slide theme with 'ggplot2' themes that match the font and colors used in your slides. Customized styles can be created directly in your slides' 'R Markdown' source file or in a separate external script.
}

Завантаження…
Відмінити
Зберегти