Skip to content

Commit

Permalink
docs(predict_race): document that census.key will be retrieved from…
Browse files Browse the repository at this point in the history
… `CENSUS_API_KEY` envvar
  • Loading branch information
rossellhayes committed Nov 15, 2023
1 parent 4aa6019 commit 2998d97
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
11 changes: 8 additions & 3 deletions R/predict_race.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,14 @@
#' must have column named \code{place}.
#' Specifying \code{\var{census.geo}} will call \code{census_helper} function
#' to merge Census geographic data at specified level of geography.
#' @param census.key A character object specifying user's Census API
#' key. Required if \code{\var{census.geo}} is specified, because
#' a valid Census API key is required to download Census geographic data.
#'
#' @param census.key A character object specifying user's Census API key.
#' Required if `census.geo` is specified, because a valid Census API key is
#' required to download Census geographic data.
#'
#' If [`NULL`], the default, attempts to find a census key stored in an
#' [environment variable][Sys.getenv] named `CENSUS_API_KEY`.
#'
#' @param census.data A list indexed by two-letter state abbreviations,
#' which contains pre-saved Census geographic data.
#' Can be generated using \code{get_census_data} function.
Expand Down
9 changes: 6 additions & 3 deletions man/predict_race.Rd

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

0 comments on commit 2998d97

Please sign in to comment.