Description Usage Arguments Details Examples
View source: R/create_report.R
stable
Create reports based on a set of parameters using predefined skeletons.
| 1 2 3 4 5 6 7 8 9 | create_report(
  output,
  title,
  template_name,
  params,
  see_now = FALSE,
  quiet = FALSE,
  ...
)
 | 
| 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 | 
Available reports are:
body
kcal
| 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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.