Skip to content
Open
Show file tree
Hide file tree
Changes from 9 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
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,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