|
|
|
|
|
|
|
|
#' @inheritDotParams theme_xaringan_base |
|
|
#' @inheritDotParams theme_xaringan_base |
|
|
#' |
|
|
#' |
|
|
#' @examples |
|
|
#' @examples |
|
|
#' if (requireNamespace("ggplot2", quietly = TRUE)) { |
|
|
|
|
|
|
|
|
#' has_ggplot2 <- requireNamespace("ggplot2", quietly = TRUE) |
|
|
|
|
|
#' if (interactive() && has_ggplot2) { |
|
|
#' # Set xaringanthemer theme but save to tempfile |
|
|
#' # Set xaringanthemer theme but save to tempfile |
|
|
#' style_duo_accent(outfile = tempfile()) |
|
|
#' style_duo_accent(outfile = tempfile()) |
|
|
#' |
|
|
#' |
|
|
|
|
|
|
|
|
#' @inheritDotParams theme_xaringan_base |
|
|
#' @inheritDotParams theme_xaringan_base |
|
|
#' |
|
|
#' |
|
|
#' @examples |
|
|
#' @examples |
|
|
#' if (requireNamespace("ggplot2", quietly = TRUE)) { |
|
|
|
|
|
|
|
|
#' has_ggplot2 <- requireNamespace("ggplot2", quietly = TRUE) |
|
|
|
|
|
#' if (interactive() && has_ggplot2) { |
|
|
#' # Set xaringanthemer theme but save to tempfile |
|
|
#' # Set xaringanthemer theme but save to tempfile |
|
|
#' style_duo_accent(outfile = tempfile()) |
|
|
#' style_duo_accent(outfile = tempfile()) |
|
|
#' |
|
|
#' |
|
|
|
|
|
|
|
|
#' @param ... Ignored |
|
|
#' @param ... Ignored |
|
|
#' |
|
|
#' |
|
|
#' @examples |
|
|
#' @examples |
|
|
#' if (requireNamespace("ggplot2", quietly = TRUE)) { |
|
|
|
|
|
|
|
|
#' has_ggplot2 <- requireNamespace("ggplot2", quietly = TRUE) |
|
|
|
|
|
#' if (interactive() && has_ggplot2) { |
|
|
#' library(ggplot2) |
|
|
#' library(ggplot2) |
|
|
#' ggplot(iris) + |
|
|
#' ggplot(iris) + |
|
|
#' aes(Petal.Length, Petal.Width) + |
|
|
#' aes(Petal.Length, Petal.Width) + |