R/dd_build_site.R

Defines functions dd_build_site

Documented in dd_build_site

#' Build a Data Dictionary Website for Your Project
#'
#' @param website_path Path to where your project's data dictionary website will be stored
#' @param dd_file  File to  your project's data dictionary
#'
#' @export
dd_build_site <- function(website_path, dd_file){
  usethis::create_package(path = website_path, check_name = FALSE, open = FALSE)
  setwd(paste(getwd(), website_path, sep= "/"))
  dd <- dd_read(dd_file = dd_file)
  usethis::use_pkgdown()
  update_yaml(dd = dd)
  # this where my functions will read in data dictionary and project info
  # create documentation for each column
  # use project information to develop readme
  create_rd_files(dd = dd)
  pkgdown::build_site()
}
greg-botwin/dddown documentation built on May 29, 2020, 12:47 a.m.