I use ggmap library for getting country name from the list of addresses.
ggmap
But it does not work as intended (at least as described here)