create_report: Create Report

Description Usage Arguments Details Examples

View source: R/create_report.R

Description

\lifecycle

stable

Create reports based on a set of parameters using predefined skeletons.

Usage

1
2
3
4
5
6
7
8
9
create_report(
  output,
  title,
  template_name,
  params,
  see_now = FALSE,
  quiet = FALSE,
  ...
)

Arguments

output

Output file with type

title

Document title

template_name

Name of the template

params

A list of named parameters for the R Markdown document

see_now

Will launch browser if true, Default: FALSE

quiet

Will hide R Markdown render messages, Default: TRUE

...

other arguments to be passed to render

Details

Available reports are:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Not run: 
create_report(
  output = "test-body.html",
  title = "Body statistics",
  template_name = "body",
  params = list(
    name = "John Doe",
    weight = 80,
    height = 180,
    sex = "male",
    age = 30,
    waist = 80,
    neck = 35,
    hip = 50,
    desired_bmi = 23,
    squat = 75,
    bench = 50
  ),
  quiet = TRUE,
  see_now = FALSE
)

## End(Not run)

MarijnJABoer/befitteR documentation built on April 24, 2020, 5:43 a.m.