Skip to content

Doc cleanup #625

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
May 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
f23c5c9
docs: link-ify `vignette("backtesting", package="epipredict")`
brookslogan Mar 11, 2025
4f90dda
docs: fix `epi_slide()` column packing note
brookslogan Mar 11, 2025
51ce893
docs: iterate on `epi_slide(.f, ...)` roxygen
brookslogan Mar 12, 2025
3868c7d
docs: iterate on `?epi_slide` intro
brookslogan Mar 12, 2025
618f841
docs: iterate on `epix_slide()` roxygen
brookslogan Mar 13, 2025
4a3eafc
docs(epi_slide): use "subpopulation" to help clarify grouping
brookslogan Mar 13, 2025
03bf732
docs(epi_slide_opt desc): cast as main time slide, +NA behavior, edits
brookslogan Mar 13, 2025
68d6c57
docs(epix_slide): remove inaccurate + misformatted `.version - before`
brookslogan Mar 13, 2025
01ab5f4
docs(epix_slide): remove duplicated word
brookslogan Mar 13, 2025
576e97d
docs(epi_slide): iterate on intro, examples, motivation
brookslogan Mar 17, 2025
8ac32e5
Remove reference to removed "advanced" vignette
brookslogan Mar 17, 2025
26cd412
docs(epix_slide): clarify .versions vs. epi_slide .ref_time_values de…
brookslogan Mar 17, 2025
7a421f6
docs(validate_epi_archive): note omitted `*_type` checks
brookslogan Mar 17, 2025
0c9007e
docs: remove duplicate word, mention `time_type` `epi_df` attr
brookslogan Mar 17, 2025
98fdca4
docs(NEWS.md): 0.12 NEWS entry + highlights for 0.11
brookslogan Mar 17, 2025
115251c
wording
nmdefries Apr 10, 2025
80413a2
docs(epix_slide): remove unnecessary S3 impl prototype boilerplate
brookslogan May 21, 2025
5c97eda
Merge remote-tracking branch 'upstream/dev' into lcb/doc-fixups
brookslogan May 22, 2025
675af5b
Bump version
brookslogan May 22, 2025
76aac96
docs: fix partial variable rename in example
brookslogan May 28, 2025
b59cd8f
docs: document()
brookslogan May 28, 2025
a50eaef
docs: address unqualified-cross-reference check issues
brookslogan May 28, 2025
dd8ae17
docs: fix doubled link label
brookslogan May 28, 2025
30c9c14
docs: document()
brookslogan May 28, 2025
a79361a
docs(epi_slide): remove redundant `...` documentation
brookslogan May 28, 2025
d2459bc
docs(epi_slide): have function intro sentence in intro paragraph
brookslogan May 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: epiprocess
Title: Tools for basic signal processing in epidemiology
Version: 0.11.6
Version: 0.11.7
Authors@R: c(
person("Jacob", "Bien", role = "ctb"),
person("Logan", "Brooks", , "[email protected]", role = c("aut", "cre")),
Expand Down
12 changes: 12 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,20 @@ Pre-1.0.0 numbering scheme: 0.x will indicate releases, while 0.x.y will indicat
- `epix_as_of_current()` introduced as an alias for `epix_as_of(.$versions_end)`.
- Added `dplyr::filter` implementation for `epi_archive`s.

## Improvements

- Various documentation has been updated, simplified, and improved with better
examples.

# epiprocess 0.11

## Highlights

`{epiprocess}` should once again not require Rtools or a compiler to be able to
install! We've also updated some function interfaces to be more consistent
throughout the package & with tidyverse, and improved the generality of and
fixed bugs in various functions and documentation.

## Breaking changes

- `growth_rate()` argument order and names have changed. You will need to
Expand Down
3 changes: 3 additions & 0 deletions R/archive.R
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ new_epi_archive <- function(

#' Perform second (costly) round of validation that `x` is a proper `epi_archive`
#'
#' Does not validate `geo_type` or `time_type` against `geo_value` and
#' `time_value` columns. These are assumed to have been set to compatibly.
#'
#' @return * Of `validate_epi_archive`: an `epi_archive`,
#' [invisibly][base::invisible] (or raises an error if `x` was invalid)
#'
Expand Down
4 changes: 2 additions & 2 deletions R/autoplot.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' Automatically plot an epi_df or epi_archive
#'
#' @param object,x An `epi_df` or `epi_archive`
#' @param ... <[`tidy-select`][dplyr_tidy_select]> One or more unquoted
#' @param ... <[`tidy-select`][dplyr::dplyr_tidy_select]> One or more unquoted
#' expressions separated by commas. Variable names can be used as if they
#' were positions in the data frame, so expressions like `x:y` can
#' be used to select a range of variables.
Expand All @@ -22,7 +22,7 @@
#' @param .max_facets `r lifecycle::badge("deprecated")`
#' @param .facet_filter Select which facets will be displayed. Especially
#' useful for when there are many `geo_value`'s or keys. This is a
#' <[`rlang`][args_data_masking]> expression along the lines of [dplyr::filter()].
#' <[`rlang`][rlang::args_data_masking]> expression along the lines of [dplyr::filter()].
#' However, it must be a single expression combined with the `&` operator. This
#' contrasts to the typical use case which allows multiple comma-separated expressions
#' which are implicitly combined with `&`. When multiple variables are selected
Expand Down
8 changes: 5 additions & 3 deletions R/epi_df.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@
#' which can be seen as measured variables at each key. In brief, an `epi_df`
#' represents a snapshot of an epidemiological data set at a point in time.
#'
#' @details An `epi_df` is a tibble with (at least) the following columns:
#' @details An `epi_df` is a kind of tibble with (at least) the following
#' columns:
#'
#' - `geo_value`: A character vector representing the geographical unit of
#' observation. This could be a country code, a state name, a county code,
#' etc.
#' - `time_value`: A date or integer vector representing the time of observation.
#'
#' Other columns can be considered as measured variables, which we also refer to
#' as signal variables. An `epi_df` object also has metadata with (at least)
#' the following fields:
#' as indicators or signals. An `epi_df` object also has metadata with (at
#' least) the following fields:
#'
#' * `geo_type`: the type for the geo values.
#' * `time_type`: the type for the time values.
#' * `as_of`: the time value at which the given data were available.
#'
#' Most users should use `as_epi_df`. The input tibble `x` to the constructor
Expand Down
3 changes: 1 addition & 2 deletions R/grouped_epi_archive.R
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,12 @@ ungroup.grouped_epi_archive <- function(x, ...) {
}


#' @rdname epix_slide
#'
#' @importFrom data.table key address rbindlist setDF copy
#' @importFrom tibble as_tibble new_tibble validate_tibble
#' @importFrom dplyr group_by groups
#' @importFrom rlang !! !!! enquo quo_is_missing enquos is_quosure sym syms
#' env missing_arg
#'
#' @export
epix_slide.grouped_epi_archive <- function(
.x,
Expand Down
2 changes: 1 addition & 1 deletion R/inline-roxygen.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#'
#' @keywords internal
tidyselect_arg_roxygen <- '
<[`tidy-select`][dplyr_tidy_select]> An unquoted column
<[`tidy-select`][dplyr::dplyr_tidy_select]> An unquoted column
name (e.g., `cases`), multiple column names (e.g., `c(cases, deaths)`),
[other tidy-select expression][tidyselect::language], or a vector of
characters (e.g. `c("cases", "deaths")`). Variable names can be used as if
Expand Down
Loading