i have registered the key but giving error
library(ggmap)
#> Loading required package: ggplot2
#> Google's Terms of Service: https://cloud.google.com/maps-platform/terms/.
#> Please cite ggmap if you use it! See citation("ggmap") for details.
library(ggplot2)
library(mapproj)
#> Loading required package: maps
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
register_google(key="", write=TRUE)
#> Replacing old key () with new key in C:/Users/emmad/Documents/.Renviron
map <-get_map(location = "pakistan",zoom = 4,maptype = "terrain")
#> Source : https://maps.googleapis.com/maps/api/staticmap?center=pakistan&zoom=4&size=640x640&scale=2&maptype=terrain&language=en-EN&key=xxx
#> Error in curl::curl_fetch_memory(url, handle = handle): Timeout was reached: Operation timed out after 10000 milliseconds with 0 out of 0 bytes