Error in `value[[3L]](cond)`: Failed to install the rnaturalearthhires package.
  Please try installing the package for yourself using the following command: 
     devtools::install_github("ropensci/rnaturalearthhires")

metadata <- readr::read_csv(system.file("extdata", "input_files/gbif.csv", package = "bdc"), show_col_types = FALSE)
test_that("test with function example", {
test_that("test different values of dist", {
country = c("Brazil", "Brazil", "Bolivia", "Argentina", "Peru"),
country_name = c("Brazil", "Argentina", "Peru"),

country_suggested <- c("Bolivia", "Bolivia", "Brazil", "Brazil")
countryCode <- c("BO", "BO", "BR", "BR")
test_that("test based on function example dataset", {
expect_equal(df$coordinates_transposed, c(FALSE, TRUE, FALSE, FALSE))
test_that("test one country without coordinate correction", {

"test based on function example dataset"
"test one country without coordinate correction"

# country <- c("bolivia", "bolivia", "brazil", "Brazil", "")
# x <- data.frame(decimalLatitude, decimalLongitude, country)
country <- c("BOLIVIA", "bolivia", "Brasil", "Brazil")
x <- bdc_country_standardized(data = x, country = "country")
worldmap <- bdc_get_world_map() # get world map and country iso

country <- c("", "NA", NA, "Brazil", "")
x <- data.frame(decimalLatitude, decimalLongitude, country)
test_that("it can return country names", {
expect_equal(r$country, c("Bolivia", NA, "Brazil", "Brazil", NA))
test_that("error: column names not found", {
test_that("return country names when all contry names is missing", {
Country names were added to 4 records in a new collumn named 'country'."
data <- data.frame(decimalLatitude, decimalLongitude, country)
test_that("bdc_country_from_coordinates keeps rows order", {
test_that("bdc_country_from_coordinates correctly assigns country names",
expect_equal(result$country, c("Finland", "Sweden", "Norway", "Estonia"))

"bdc_country_from_coordinates:
Country names were added to 2 records."
"return country names when all contry names is missing"
"bdc_country_from_coordinates:
Country names were added to 4 records in a new collumn named 'country'."
"bdc_country_from_coordinates correctly assigns country names"