Skip to contents

Create report from report templates

Usage

create_report(
  data,
  template = "annual",
  title = "Cancer Registry Report",
  output_format = "html_document",
  output_dir = NULL
)

# S3 method for class 'canregs'
create_report(
  data,
  template = "annual",
  title = "Cancer Registry Report",
  output_format = "html_document",
  output_dir = NULL
)

# S3 method for class 'canreg'
create_report(
  data,
  template = "annual",
  title = "Cancer Registry Report",
  output_format = "html_document",
  output_dir = NULL
)

Arguments

data

Object with class of 'canreg' or 'fbswicd'.

template

Name of the template used to render report, options are "annual", "quality", or "CI5", default is "annual".

title

Title of the report to be rendered, default is "Cancer Registry Report".

output_format

File type of the render result, options are "html_document", "word_document" or "pdf_document", default is "html_document".

output_dir

Directory of the rendered report.