No known key found for this signature in database
GPG Key ID: 1D7529BE14E2BBA9
2 changed files with
9 additions and
2 deletions
-
R/api-key.R
-
man/attackerkb_api_key.Rd
|
|
@ -5,9 +5,12 @@ |
|
|
|
#' The easiest way to accomplish this is to set it |
|
|
|
#' in the `.Renviron` file in your home directory. |
|
|
|
#' |
|
|
|
#' You can obtain an AttackerKB API key by going visiting |
|
|
|
#' **AttackerKB Profile Page > Settings > API Key.** |
|
|
|
#' |
|
|
|
#' @md |
|
|
|
#' @param force Force setting a new AttackerKB key for the current environment? |
|
|
|
#' @return atomic character vector containing the AttackerKB api key |
|
|
|
#' @return atomic character vector containing the AttackerKB API key |
|
|
|
#' @export |
|
|
|
attackerkb_api_key <- function(force = FALSE) { |
|
|
|
|
|
|
@ -19,7 +22,7 @@ attackerkb_api_key <- function(force = FALSE) { |
|
|
|
call. = FALSE) |
|
|
|
} |
|
|
|
|
|
|
|
message("Couldn't find env var ATTACKERKB_API_KEY See ?ATTACKERKB_API_KEY for more details.") |
|
|
|
message("Couldn't find env var ATTACKERKB_API_KEY See ?attackerkb_api_key for more details.") |
|
|
|
message("Please enter your API key:") |
|
|
|
pat <- readline(": ") |
|
|
|
|
|
|
|
|
|
@ -18,3 +18,7 @@ key residing in the environment variable \code{ATTACKERKB_API_KEY}. |
|
|
|
The easiest way to accomplish this is to set it |
|
|
|
in the \code{.Renviron} file in your home directory. |
|
|
|
} |
|
|
|
\details{ |
|
|
|
You can obtain an AttackerKB API key by going visiting |
|
|
|
\strong{AttackerKB Profile Page > Settings > API Key.} |
|
|
|
} |
|
|
|