A The First Appendix
This first appendix includes all of the R chunks of code that were hidden throughout the document (using the include = FALSE
chunk tag) to help with readibility and/or setup.
In the main Rmd file
# This chunk ensures that the thesisdowndss package is
# installed and loaded. This thesisdowndss package includes
# the template files for the thesis.
if(!require(devtools))
install.packages("devtools", repos = "http://cran.rstudio.com")
if(!require(thesisdowndss))
devtools::install_github("mine-cetinkaya-rundel/thesisdowndss")
library(thesisdowndss)
In Chapter 3:
# This chunk ensures that the thesisdowndss package is
# installed and loaded. This thesisdowndss package includes
# the template files for the thesis and also two functions
# used for labeling and referencing
if(!require(devtools))
install.packages("devtools", repos = "http://cran.rstudio.com")
if(!require(dplyr))
install.packages("dplyr", repos = "http://cran.rstudio.com")
if(!require(ggplot2))
install.packages("ggplot2", repos = "http://cran.rstudio.com")
if(!require(ggplot2))
install.packages("bookdown", repos = "http://cran.rstudio.com")
if(!require(thesisdowndss)){
library(devtools)
devtools::install_github("mine-cetinkaya-rundel/thesisdowndss")
}
library(thesisdowndss)
flights <- read.csv("data/flights.csv")