| template = template_variables, | template = template_variables, | ||||
| ..., | ..., | ||||
| file = "", | file = "", | ||||
| body = NULL | |||||
| body = c( | |||||
| " # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R", | |||||
| " eval(parse(text = call_write_xaringan_theme()))" | |||||
| ) | |||||
| ) { | ) { | ||||
| if (file == "clip" && !requireNamespace("clipr", quietly = TRUE)) file <- "" | if (file == "clip" && !requireNamespace("clipr", quietly = TRUE)) file <- "" | ||||
| tv <- template | tv <- template | ||||
| "#' @template mono_light", | "#' @template mono_light", | ||||
| "#' @family Monotone themes", | "#' @family Monotone themes", | ||||
| "#' @export", | "#' @export", | ||||
| body = c( | |||||
| " # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R", | |||||
| " eval(parse(text = call_write_xaringan_theme()))" | |||||
| ), | |||||
| file = here::here("R/mono_light.R") | file = here::here("R/mono_light.R") | ||||
| ) | ) | ||||
| "#' @template mono_dark", | "#' @template mono_dark", | ||||
| "#' @family Monotone themes", | "#' @family Monotone themes", | ||||
| "#' @export", | "#' @export", | ||||
| body = c( | |||||
| " # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R", | |||||
| " eval(parse(text = call_write_xaringan_theme()))" | |||||
| ), | |||||
| file = here::here("R/mono_dark.R") | file = here::here("R/mono_dark.R") | ||||
| ) | ) | ||||
| "#' @template mono_accent", | "#' @template mono_accent", | ||||
| "#' @family Monotone themes", | "#' @family Monotone themes", | ||||
| "#' @export", | "#' @export", | ||||
| body = c( | |||||
| " # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R", | |||||
| " eval(parse(text = call_write_xaringan_theme()))" | |||||
| ), | |||||
| file = here::here("R/mono_accent.R") | file = here::here("R/mono_accent.R") | ||||
| ) | ) | ||||
| "#' @template mono_accent_inverse", | "#' @template mono_accent_inverse", | ||||
| "#' @family Monotone themes", | "#' @family Monotone themes", | ||||
| "#' @export", | "#' @export", | ||||
| body = c( | |||||
| " # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R", | |||||
| " eval(parse(text = call_write_xaringan_theme()))" | |||||
| ), | |||||
| file = here::here("R/mono_accent_inverse.R") | file = here::here("R/mono_accent_inverse.R") | ||||
| ) | ) | ||||
| "#' @template duo", | "#' @template duo", | ||||
| "#' @family Duotone themes", | "#' @family Duotone themes", | ||||
| "#' @export", | "#' @export", | ||||
| body = c( | |||||
| " # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R", | |||||
| " eval(parse(text = call_write_xaringan_theme()))" | |||||
| ), | |||||
| file = here::here("R/duo.R") | file = here::here("R/duo.R") | ||||
| ) | ) | ||||
| "#' @template duo_accent", | "#' @template duo_accent", | ||||
| "#' @family Duotone themes", | "#' @family Duotone themes", | ||||
| "#' @export", | "#' @export", | ||||
| body = c( | |||||
| " # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R", | |||||
| " eval(parse(text = call_write_xaringan_theme()))" | |||||
| ), | |||||
| file = here::here("R/duo_accent.R") | file = here::here("R/duo_accent.R") | ||||
| ) | ) | ||||
| "#' @template duo_accent_inverse", | "#' @template duo_accent_inverse", | ||||
| "#' @family Duotone themes", | "#' @family Duotone themes", | ||||
| "#' @export", | "#' @export", | ||||
| body = c( | |||||
| " # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R", | |||||
| " eval(parse(text = call_write_xaringan_theme()))" | |||||
| ), | |||||
| file = here::here("R/duo_accent_inverse.R") | file = here::here("R/duo_accent_inverse.R") | ||||
| ) | ) | ||||
| "#' @template solarized_light", | "#' @template solarized_light", | ||||
| "#' @family Solarized themes", | "#' @family Solarized themes", | ||||
| "#' @export", | "#' @export", | ||||
| body = c( | |||||
| " # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R", | |||||
| " eval(parse(text = call_write_xaringan_theme()))" | |||||
| ), | |||||
| file = here::here("R/solarized_light.R") | file = here::here("R/solarized_light.R") | ||||
| ) | ) | ||||
| "#' @template solarized_dark", | "#' @template solarized_dark", | ||||
| "#' @family Solarized themes", | "#' @family Solarized themes", | ||||
| "#' @export", | "#' @export", | ||||
| body = c( | |||||
| " # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R", | |||||
| " eval(parse(text = call_write_xaringan_theme()))" | |||||
| ), | |||||
| file = here::here("R/solarized_dark.R") | file = here::here("R/solarized_dark.R") | ||||
| ) | ) |