healthsites-who-compare

library(afrihealthsites)
#> Loading required package: sf
#> Linking to GEOS 3.12.1, GDAL 3.8.4, PROJ 9.4.0; sf_use_s2() is TRUE


  
for(countrynum in 1:length(afcountries$name))
{
  #iso3c <- v_iso3c[countrynum]  
  #name <- iso2country(iso3c)
  country <- afcountries$name[countrynum]
  
  cat(country,"\n")
  
  #E> Error: processing vignette 'healthsites-who-compare.Rmd' failed with diagnostics:
  #E> attr(obj, "sf_column") does not point to a geometry column.
  #E> Did you rename it, without setting st_geometry(obj) <- "newname"?
  
  #temp commented out to avoid error above
  
  #compare_hs_sources(country, datasources=c('who', 'healthsites'), plot='mapview')
  
  
}
#> Angola 
#> Burundi 
#> Benin 
#> Burkina Faso 
#> Botswana 
#> Central African Republic 
#> Ivory Coast 
#> Cameroon 
#> Democratic Republic of the Congo 
#> Republic of Congo 
#> Comoros 
#> Cape Verde 
#> Djibouti 
#> Algeria 
#> Egypt 
#> Eritrea 
#> Ethiopia 
#> Gabon 
#> Ghana 
#> Guinea 
#> Gambia 
#> Guinea Bissau 
#> Equatorial Guinea 
#> Kenya 
#> Liberia 
#> Libya 
#> Lesotho 
#> Morocco 
#> Madagascar 
#> Mali 
#> Mozambique 
#> Mauritania 
#> Malawi 
#> Namibia 
#> Niger 
#> Nigeria 
#> Rwanda 
#> Western Sahara 
#> Sudan 
#> South Sudan 
#> Senegal 
#> Sierra Leone 
#> Somalia 
#> Sao Tome and Principe 
#> Swaziland 
#> Chad 
#> Togo 
#> Tunisia 
#> United Republic of Tanzania 
#> Uganda 
#> South Africa 
#> Zambia 
#> Zimbabwe