nominatim
                                
                                 nominatim copied to clipboard
                                
                                    nominatim copied to clipboard
                            
                            
                            
                        Package returns data.frames of the incorrect number of rows
Looks like when the search fails it returns a data.frame with 0 rows and rbinds the results, resulting in a data.frame that has fewer rows that the inputs. I'd recommend changing this so the function yields a data.frame with a single row of NAs (and the same names).
Thx for the bug report! Can you incl a short snippet that I can use for testing? Seems like a very reasonable mod.
nominatim::osm_geocode(c("1600 Pennsylvania Avenue Northwest, Washington, DC", "The moon"), 
                       key = "yourkey")