Skip to content

Commit bffcb44

Browse files
committed
add name to get_dates
1 parent 7a84f22 commit bffcb44

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

R/accessors.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#' \item \code{get_dates}: get dates of the predictions.
88
#'
99
#' }
10-
#'
10+
#' @name get_dates
1111
#' @rdname projections_accessors
1212
#'
1313
#' @author Thibaut Jombart \email{thibautjombart@@gmail.com}
@@ -21,7 +21,7 @@
2121
#' @examples
2222
#'
2323
#'
24-
#' if (require(distcrete) && require(incidence)) {
24+
#' if (require(distcrete) && require(incidence)) { withAutoprint({
2525
#'
2626
#' ## prepare input: epicurve and serial interval
2727
#' dat <- c(0, 2, 2, 3, 3, 5, 5, 5, 6, 6, 6, 6)
@@ -40,8 +40,9 @@
4040
#' get_dates(pred_1)
4141
#' max(i$dates) # predictions start 1 day after last incidence
4242
#'
43-
#' }
43+
#' })}
4444
#' @aliases get_dates.projections
45+
#' @aliases get_dates
4546
#' @importFrom incidence get_dates
4647
get_dates.projections <- function(x, ...) {
4748
attr(x, "dates")

man/projections_accessors.Rd

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)