-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from ThomUK/label_limits
Add `annotate_limits` argument to spcr_make_report() Thanks @francisbarton!
- Loading branch information
Showing
7 changed files
with
76 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: SPCreporter | ||
Title: Creates Metric Reports using Statistical Process Control in the NHS style | ||
Version: 0.1.5.6 | ||
Version: 0.1.6 | ||
Authors@R: c( | ||
person("Tom", "Smith",, "[email protected]", role = c("aut", "cre")), | ||
person("Fran", "Barton",, "[email protected]", role = "ctb")) | ||
|
@@ -28,7 +28,7 @@ Imports: | |
ggplot2, | ||
knitr, | ||
lubridate, | ||
NHSRplotthedots (== 0.1.0), | ||
NHSRplotthedots, | ||
purrr, | ||
readr, | ||
rlang, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,7 +109,7 @@ data_bundle <- spcr_make_data_bundle( | |
# make the report, including information for the six mandatory arguments. | ||
spcr_make_report( | ||
data_bundle = data_bundle, | ||
title = "My Example Report", | ||
report_title = "My Example Report", | ||
report_ref = "EG.001", | ||
data_cutoff_dttm = as.POSIXct("2022-09-30 23:59:59"), | ||
author_name = "Anne Author", | ||
|
@@ -128,7 +128,7 @@ spcr_make_report( | |
# example where we map over several reports, creating them in one go | ||
all_my_reports <- tibble::tibble( | ||
title = c("Report 1", "Report 2", "Report 3"), | ||
report_title = c("Report 1", "Report 2", "Report 3"), | ||
report_ref = c("ID.1", "ID.2", "ID.3"), | ||
author_name = "Anne Author", | ||
author_email = "[email protected]", | ||
|
@@ -142,7 +142,6 @@ all_my_reports <- tibble::tibble( | |
purrr::pwalk(all_my_reports, spcr_make_report, data_bundle = data_bundle) | ||
# ... but you may want to pass different data to each: | ||
all_my_reports |> | ||
dplyr::mutate(data_bundle = list(data_bundle1, data_bundle2, data_bundle3)) |> | ||
purrr::pwalk(spcr_make_report) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,7 +100,7 @@ data_bundle <- spcr_make_data_bundle( | |
# make the report, including information for the six mandatory arguments. | ||
spcr_make_report( | ||
data_bundle = data_bundle, | ||
title = "My Example Report", | ||
report_title = "My Example Report", | ||
report_ref = "EG.001", | ||
data_cutoff_dttm = as.POSIXct("2022-09-30 23:59:59"), | ||
author_name = "Anne Author", | ||
|
@@ -116,7 +116,7 @@ spcr_make_report( | |
# example where we map over several reports, creating them in one go | ||
|
||
all_my_reports <- tibble::tibble( | ||
title = c("Report 1", "Report 2", "Report 3"), | ||
report_title = c("Report 1", "Report 2", "Report 3"), | ||
report_ref = c("ID.1", "ID.2", "ID.3"), | ||
author_name = "Anne Author", | ||
author_email = "[email protected]", | ||
|
@@ -130,7 +130,6 @@ all_my_reports <- tibble::tibble( | |
purrr::pwalk(all_my_reports, spcr_make_report, data_bundle = data_bundle) | ||
|
||
# ... but you may want to pass different data to each: | ||
|
||
all_my_reports |> | ||
dplyr::mutate(data_bundle = list(data_bundle1, data_bundle2, data_bundle3)) |> | ||
purrr::pwalk(spcr_make_report) | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.