Learn R Programming

ypr (version 0.4.0)

ypr_report: Report

Description

Creates an Rmd file that can be used to generate a report.

Usage

ypr_report(
  population,
  title = "Population Report",
  description = "",
  date = Sys.Date(),
  file = "report",
  view = FALSE,
  ask = TRUE
)

Arguments

population

An object of class ypr_population().

title

A string of the report title.

description

A string describing the population.

date

A date of the report date.

file

A string of the path to the file (without the extension).

view

A flag specifying whether to view the report (after rendering it to html).

ask

A flag specifying whether to ask before overwriting or creating a file.

Value

An invisible character vector of the contents of the file.

Examples

Run this code
# NOT RUN {
ypr_report(ypr_population(), file = tempfile(), ask = FALSE)
# }

Run the code above in your browser using DataLab