Skip to content

Commit

Permalink
added .og vignette file, created .rda for running examples, templates…
Browse files Browse the repository at this point in the history
… folder for documentation
  • Loading branch information
realbp committed Mar 20, 2024
1 parent 88ab933 commit a90aca4
Show file tree
Hide file tree
Showing 8 changed files with 469 additions and 25 deletions.
2 changes: 2 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ Suggests:
testthat
Config/testthat/edition: 3
VignetteBuilder: knitr
Depends:
R (>= 2.10)
5 changes: 2 additions & 3 deletions R/process-resp.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
#' @noRd
#'
#' @examples
#' \dontrun{
#' process_resp(resp, demographics)
#' }
#' process_resp(resp, "demographics")
#'
process_resp <- function(resp, topic) {
if (httr2::resp_content_type(resp) != "text/csv") {
cli_abort("Invalid input, please check documentation for valid arguments.")
Expand Down
6 changes: 2 additions & 4 deletions R/risk-alcohol.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
#' - `"American Indian / Alaska Native (non-Hispanic)"`
#' - `"Asian / Pacific Islander (non-Hispanic)"`
#' - `"Hispanic (Any Race)"`.
#' @param sex One of the following values:
#' - `"both sexes"`
#' - `"male"`
#' - `"female"`.
#'
#' @template sex
#'
#' @importFrom httr2 req_url_query req_perform
#' @importFrom stats setNames
Expand Down
Binary file added R/sysdata.rda
Binary file not shown.
4 changes: 4 additions & 0 deletions man-roxygen/sex.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#' @param sex One of the following values:
#' - `"both sexes"`
#' - `"male"`
#' - `"female"`.
Loading

0 comments on commit a90aca4

Please sign in to comment.