examples/html_ramarkJS_presentation/manuscript/global.R

############################################################
#                                                          #
#                       Set Options                        #
#                                                          #
############################################################

knitr::opts_chunk$set(
  collapse = TRUE,
  dev.args = list(bg = 'transparent'),
  warning = FALSE,
  message = FALSE,
  error = FALSE,
  echo = FALSE,
  dev = "svg",
  fig.retina = 2,
  fig.height = 4, out.width="100%",
  fig.align = "center",
  fig.pos ="H",
  comment = "",
  highlight = TRUE,
  screenshot.opts <- list(delay = 1),
  fig.path = "figures/"
)

options(scipen = 999)
options(knggitr.kable.NA = '')
options(htmltools.dir.version = FALSE)

##%######################################################%##
#                                                          #
####                    load library                    ####
#                                                          #
##%######################################################%##

library(MPIThemes)
library(ggplot2)
library(dplyr)
library(grid)
library(gt)
library(kableExtra)
library(reticulate)
############################################################
#                                                          #
#                   Set Color and Theme                    #
#                                                          #
############################################################

set_color_theme(12)
Ehyaei/MPIThemes documentation built on Jan. 13, 2022, 7:28 p.m.