### # required packages from CRAN
vec_reqpkgs_cran <- c("knitr", "rmarkdown", "roxygen2", "bookdown", "caTools", "citr", "devtools", "kableExtra")
vec_instpkgs <- installed.packages()
for (p in vec_reqpkgs_cran){
  if (!p %in% vec_instpkgs)
    install.packages(pkgs = p, repos = "https://cran.rstudio.com")
}

### # required packages from github
list_reqpkgs_github <- list(repo=c("charlotte-ngs"), package = c("rmdhelp"))
for (idx in seq_along(1:length(list_reqpkgs_github$package))){
  p <- list_reqpkgs_github$package[idx]
  if (!p %in% vec_instpkgs)
    devtools::install_github(paste(list_reqpkgs_github$repo[idx], p, sep = "/"))
}
knitr::knit_hooks$set(hook_convert_odg = rmdhelp::hook_convert_odg)
mrmt <- rmdhelp::MendeleyExportToolR6$new()
mrmt$set_local_bib_file(ps_local_bib_file = 'lbgfs2020.bib')
mrmt$set_this_rmd_file(ps_this_rmd_file = rmdhelp::get_this_rmd_file())


charlotte-ngs/lbgfs2020 documentation built on Dec. 20, 2020, 5:39 p.m.