render_filtered_pages: Render filtered pages

Description Usage Arguments

View source: R/render.R

Description

Creates pages by filter (e.g. by department/profession/grade).

Usage

1
2
3
4
5
6
7
render_filtered_pages(
  data,
  filter_variable,
  page_title = "",
  output_folder = "../../docs",
  template_path = "rmarkdown/summary_template/template.rmd"
)

Arguments

data

This is generated using the carsurvey2::data_ functions.

filter_variable

The variable that the data is filtered on. This is given as a string such as "dept". The data is filtered by getting all values in the filter_variable greater than 20 and subsetting the data.

page_title

This is ONLY PART of the title. page_title , " profile: ", filter – where filter is one element of the list as described above in filter_variable (values over 20) and the page title is this argument.

output_folder

Folder the site is built and saved to

template_path

The path to the template that gets render for each department


best-practice-and-impact/CARS2 documentation built on Dec. 19, 2021, 8:47 a.m.