library(tidyverse) library(kableExtra) # Chunks settings knitr::opts_chunk$set(echo = FALSE, # Plot settings fig.align='center', # dev = "tikz", dev.args=list(pointsize=12), # fig.height=3, fig.width=5, fig.pos = "!ht", # Code output width tidy=TRUE, tidy.opts = list(width.cutoff = 80), # comment = NA, prompt = TRUE, collapse = TRUE, # Cache options cache = FALSE, autodep=TRUE) # Console output width options(width = 80) # Chunk theme thm = knitr::knit_theme$get("bclear") knitr::knit_theme$set(thm) knitr::opts_chunk$set(background = c(.98, .98, 1)) # Option KableExtra # options(knitr.kable.NA = '') ## ggplot settings theme_set(theme_bw()+ theme(text = element_text(size=12))) #---- Custom Functions ---- tryCatch( devtools::load_all("../"), error = function(x){ devtools::load_all() }) #---- load targets ---- # Path to _targets/ is defined in the _targets.yaml file tar_load_all() library("targets")
Summary of the data
ls() tar_load(my_data) summary(my_data)
Distribution observations
tar_read(plot_obs)
tar_load(lm_fit) summary(lm_fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.