Skip to content

Commit

Permalink
Remove mm_authorize from _pkgdown.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
asadow committed Nov 29, 2023
1 parent a05848e commit 15ff55e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 31 deletions.
7 changes: 2 additions & 5 deletions R/utils-check.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ check_params <- function(x, call = rlang::caller_env()) {
keys <- np[grep("key", np)]
cli::cli_abort(c(
"Prevented filter {.arg keys} from being included in the request URL.",
"i" = "It is highly recommended that you run {.fun mm_authorize},
and {.emph do not} supply {.arg .key}.",
"i" = "A typo like `kee = <your-secret>` will end up in the request URL as
a filter."
))
"i" = "Use environment variables for credentials instead."
))
}

if (any(startsWith(np, "."))) {
Expand Down
3 changes: 1 addition & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ remove_api_urls <- function(.data) {
# Error on absent MEGAMATION env vars
cred_error <- function(x) {
cli::cli_abort(c(
"No {.envvar MEGAMATION_{toupper(x)}} found.",
"i" = "Did you run {.fun mm_authorize}?"
"No {.envvar MEGAMATION_{toupper(x)}} found."
))
}
5 changes: 0 additions & 5 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ reference:
- mm_get_criteria
- mm_get_schema
- mm_get_labels
- title: "Authorization"
desc: >
Install credentials for automatic use
contents:
- mm_authorize
- title: "Programming around the Megamation API"
desc: >
Low-level functions used internally and made available for programming
Expand Down
19 changes: 0 additions & 19 deletions api.megamation.com/uw/joe/status-b4ea5e.R

This file was deleted.

0 comments on commit 15ff55e

Please sign in to comment.