# source("setup_std.R") # ____ Library_Tidyverse_Setup library(tidyverse) library(lubridate) library(forcats) library(stringi) # ____ Library_ploting_Setup library(grid) library(gridExtra) library(ggExtra) library(GGally) library(ggalt) library(scales) library(extrafont) loadfonts("win") # ____ Library_Web_Setup library(rvest) library(jsonlite) # ____ Library_Reporting_Setup library(knitr) library(kableExtra) # ____ My_Blogging_Setup library(blg) # ____ Opts_Setup knitr::opts_chunk$set(echo = FALSE) knitr::opts_chunk$set(fig.height = 7) knitr::opts_chunk$set(message = FALSE) knitr::opts_chunk$set(warning = FALSE) # ____ R_Options_Setup old_scipen <- getOption("scipen") options(scipen = 100) old_digits <- getOption("digits") options(digits = 2) # ____ knitr_Options_Setup orig_inline <- knit_hooks$get("inline") old_plot <- knit_hooks$get("plot") # ____ Hooks_Setup knit_hooks$set(inline = function(x) { if (is.numeric(x) | is.integer(x)) return(formatC(x, format = "d", big.mark = ",")) else if (is.character(x)) return(stringr::str_to_title(x)) else return(x) }) old_inline <- knit_hooks$get("inline") my_blue <- "#0059B3" my_orange <- "#B35A00" my_pink <- "#B30059" my_green <- "#59B300"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.