Running examples in ‘gmapsdistance-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: gmapsdistance
> ### Title: gmapsdistance
> ### Aliases: gmapsdistance
> 
> ### ** Examples
> 
> # Example 1
> results = gmapsdistance(origin = "Washington+DC", 
+                         destination = "New+York+City+NY", 
+                         mode = "driving")
> results
$Time
[1] 13955

$Distance
[1] 361974

$Status
[1] "OK"

> 
> # Example 2
> results = gmapsdistance(origin = "38.1621328+24.0029257",
+                         destination = "37.9908372+23.7383394",
+                         mode = "walking")
> results
$Time
[1] 30462

$Distance
[1] 39469

$Status
[1] "OK"

> 
> # Example 3
> results = gmapsdistance(origin = c("Seattle+WA", "Miami+FL"), 
+                         destination = c("Chicago+IL", "Philadelphia+PA"), 
+                         mode = "bicycling", 
+                         dep_date = "2021-08-16", 
+                         dep_time = "20:40:00")
> 
> results
$Time
          or Time.Chicago+IL Time.Philadelphia+PA
1 Seattle+WA          675154               955014
2   Miami+FL          450869               410958

$Distance
          or Distance.Chicago+IL Distance.Philadelphia+PA
1 Seattle+WA             3587778                  5048653
2   Miami+FL             2377380                  2171953

$Status
          or status.Chicago+IL status.Philadelphia+PA
1 Seattle+WA                OK                     OK
2   Miami+FL                OK                     OK

> 
> # Example 4
> origin = c("Washington+DC", "Miami+FL")
> destination = c("Los+Angeles+CA", "Austin+TX", "Chicago+IL")
> results = gmapsdistance(origin, destination, mode = "driving", shape = "long")
Error in gmapsdistance(origin, destination, mode = "driving", shape = "long") : 
  Google API returned an error: You have exceeded your rate-limit for this API. We recommend registering for a key at the Google Developers Console: https://console.developers.google.com/apis/credentials?project=_
Execution halted