R/register_key.R

Defines functions register_key

Documented in register_key

#' \code{register_key} Register's your API key needed to geocode. If the key is not registered,
#' The geocoding functions will throw errors.
#'
#' @param api_key The api key, as a character object.
#'
#' @importFrom ggmap register_google
#'
#' @examples \dontrun{
#' register_key('ASnERN405060i7NDNS') # This key is fictional
#' }

register_key <- function(api_key){
  #read in the API key
  KEY <- api_key
  # Register key
  register_google(key = KEY)
}
12mre1/geocodr documentation built on Oct. 30, 2019, 4:02 a.m.