R/create_documentation.R

Defines functions create_documentation

Documented in create_documentation

#'Renders .rmd file to display all model data inputs
#'
#'Figures and text are created to document the data used in the particular run of the model
#'
#'@param outFile Name of the html file to be output (Default = documentation.html)
#'@param outDir Path to the location of where the html should be saved
#'
#'@section :Dependencies
#'An rmd file is rendered (using rmarkdown) to produce the html file.
#'
#'@export

create_documentation <- function(outFile="documentation.html",outDir=getwd(),data=hydraDataList){
  #data <-  hydraData
  # calls all of the plotting routines
  main_plot_inputs(outDir,data) # path to where pngs will be saved
  # locates the path to the rmd file
  rmdFile <- system.file("rmd",file = "create_documentation.Rmd",package="hydradata")
  # makes the documentation
  rmarkdown::render(rmdFile,params=list(dir=outDir,data=data),output_file=outFile,output_dir = outDir)

}
NOAA-EDAB/hydradata documentation built on Feb. 3, 2021, 9:02 p.m.