#' Install all kinds of packages that I usually need
#' @export
#'
#'
pkg_install <- function(){
pkg <- c("foreign", "ggplot2", "MASS", "reshape2", "ArfimaMLM", "sn", "moments",
"dplyr", "data.table", "colorout", "knitr", "tidyr", "plyr", "stringr", "zoo",
"sandwich", "lmtest", "devtools","rjags","MCMCpack","coda")
inst <- pkg %in% installed.packages()
if (length(pkg[!inst]) > 0) install.packages(pkg[!inst])
# lapply(pkg,library,character.only=TRUE)
}
### Function for Plotting ### write function to plot + export pdf etc.?
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.