Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ Suggests:
readr,
rmarkdown,
testthat (>= 3.1.5),
withr
withr,
curl
VignetteBuilder:
knitr
Remotes:
Expand All @@ -68,7 +69,7 @@ Encoding: UTF-8
Language: en-US
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
RoxygenNote: 7.3.3
Collate:
'auth.R'
'avail_endpoints.R'
Expand Down
15 changes: 9 additions & 6 deletions R/auth.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
#' key](https://api.delphi.cmu.edu/epidata/admin/registration_form).
#'
#' API keys are strings read from the environment variable `DELPHI_EPIDATA_KEY`.
#' We recommend setting your key with `save_api_key()`, which will modify an
#' applicable `.Renviron` file, which will be read in automatically when you
#' start future R sessions (see [`?Startup`][base::Startup] for details on
#' `.Renviron` files). Alternatively, you can modify the environment variable at
#' the command line before/while launching R, or inside an R session with
#' [`Sys.setenv()`], but these will not persist across sessions.
#' We recommend setting your key with `save_api_key()`, which will open your
#' `.Renviron` file in a text editor. You will need to write
#' `DELPHI_EPIDATA_KEY=yourkeyhere` (without quotes) in the file and save it.
#' Once the `.Renviron` file has been saved as instructed, it will be read
#' automatically when you start future R sessions
#' (see [`?Startup`][base::Startup] for details on `.Renviron` files).
#' Alternatively, you can modify the environment variable at the command line
#' before/while launching R, or inside an R session with [`Sys.setenv()`],
#' but these will not persist across sessions.
#'
#' Once an API key is set, it is automatically used for all requests made by
#' functions in this package.
Expand Down
Loading