Skip to content

Commit 5144da2

Browse files
committed
Minor updates
1 parent 1c33757 commit 5144da2

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
^data-raw$
1111
^codecov\.yml$
1212
^cran-comments.md
13+
^CRAN-SUBMISSION$

DESCRIPTION

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
Package: ggsurveillance
2-
Title: Tools and Ggplot Extensions for Infectious Disease Surveillance and
3-
Outbreak Investigation
2+
Title: Tools and 'ggplot2' Extensions for Infectious Disease Surveillance
3+
and Outbreak Investigation
44
Version: 0.1.0
55
Authors@R:
66
person("Alexander", "Bartel", , "alexander.bartel@fu-berlin.de", role = c("aut", "cre"),
77
comment = c(ORCID = "0000-0002-1280-6138"))
8-
Description: Create epicurves or epigantt charts in ggplot. Prepare data
9-
for visualisation or other reporting for infectious disease
10-
surveillance and outbreak investigation. Includes functions to solve date based transformations for common reporting tasks, like
8+
Description: Create epicurves or epigantt charts in 'ggplot2'. Prepare
9+
data for visualisation or other reporting for infectious disease
10+
surveillance and outbreak investigation. Includes functions to solve
11+
date based transformations for common reporting tasks, like
1112
(A) seasonal date alignment for respiratory disease surveillance,
12-
(B) date-based case binning based on specified time intervals like isoweek, epiweek, month and more,
13-
(C) automated detection and marking of the new year based on the date/datetime axis of the ggplot.
13+
(B) date-based case binning based on specified time intervals like
14+
isoweek, epiweek, month and more, (C) automated detection and marking
15+
of the new year based on the date/datetime axis of the 'ggplot2'.
1416
License: GPL (>= 3)
1517
URL: https://ggsurveillance.biostats.dev,
1618
https://github.com/biostats-dev/ggsurveillance

R/geometric_mean.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ geometric_mean <- function(x, na.rm = FALSE, replace_value = NULL, replace = c("
8383
if (!is.null(replace_value)) {
8484
n_replaced <- sum(f_replace(x), na.rm = TRUE)
8585
x[f_replace(x)] <- as.numeric(replace_value)
86-
cli::cli_warn("{n_replaced} value{?s} were substituted with {as.numeric(replace_value)}.")
86+
if (n_replaced != 0) cli::cli_warn("{n_replaced} value{?s} were substituted with {as.numeric(replace_value)}.")
8787
}
8888

8989
# Check if x is 0 or smaller

man/geom_epicurve.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)