Skip to content

Commit

Permalink
updated documentation for create_epidist_citation, closes #156
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwlambert committed Aug 29, 2023
1 parent 1d5197c commit 207552c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
17 changes: 9 additions & 8 deletions R/epidist_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -349,13 +349,14 @@ create_epidist_summary_stats <- function(mean = NA_real_,
)
}

#' A helper function when creating an epidist object to create a summary
#' statistics list with sensible defaults, type checking and arguments to help
#' remember which summary statistics can be accepted in the list

#' A helper function when creating an epidist object to create a citation list
#' with sensible defaults, type checking and arguments to help remember which
#' citation information is accepted in the list.
#' Create a citation for an epidist object
#'
#' @description A helper function when creating an epidist object to create a
#' citation list with sensible defaults, type checking and arguments to help
#' remember which citation information is accepted in the list.
#'
#' @details This function acts as a wrapper around [`bibentry()`] to create
#' citations for sources reporting epidemiological parameters.
#'
#' @param author A `character` string of the surname of the first author. This
#' can be underscore separated from a second author, or underscore separated
Expand All @@ -371,7 +372,7 @@ create_epidist_summary_stats <- function(mean = NA_real_,
#' @param DOI A `character` string of the Digital Object Identifier (DOI)
#' assigned to papers which are unique to each paper.
#'
#' @return A character string of the formatted short citation
#' @return A `bibentry` object of the citation
#' @export
#'
#' @examples
Expand Down
22 changes: 9 additions & 13 deletions man/create_epidist_citation.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 207552c

Please sign in to comment.