-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some tests failing with the upcoming release of rnaturalearthdata #10
Comments
Hi Phil,
Thanks for letting us know! I’ve had a little look and I think that the problem on the BeeBDC side is that the “iso_a3” column now returns -99 for (at least for this test) Norway and France. As do a few other columns. So, my question would be — should I be looking to use another column, or is this a data issue on your end? I know that country names and codes are a real pain, so hopefully this isn’t too difficult :)
Warm regards,
James
|
And sorry, that is from using this
code:countryMap <- rnaturalearth::ne_countries(returnclass = "sf", country = NULL,
type = "countries", scale = 50) %>%
# buffer by zero and make geometry valid to avoid potential issues with polygon intersection
sf::st_make_valid() %>%
# Select only a subset of the naturalearthdata columns to extract
dplyr::select(iso_a2, iso_a3, name, name_long, continent, geometry) %>%
# Replace some country codes to match the checklist
dplyr::mutate(iso_a3 = iso_a3 %>%
stringr::str_replace_all( c("ALA" = "FIN", # Aland Islands == Finland "ASM" = "WSM", # American Samoa == Samoa "HKG" = "CHN", # Hong Kong == China "MAF" = "SXM"))) # Saint-Martin == Sint Maarten
|
Hi @jbdorey ! Do I understand that countryMap <- rnaturalearth::ne_countries(
returnclass = "sf",
country = NULL,
type = "countries",
scale = 50
) %>%
sf::st_make_valid() %>%
dplyr::select(iso_a2, iso_a3, name, name_long, continent, geometry) %>%
dplyr::mutate(iso_a3 = iso_a3 %>% stringr::str_replace_all(
c(
"ALA" = "FIN",
"ASM" = "WSM",
"HKG" = "CHN",
"MAF" = "SXM"
)
))
Would fix the issue? And congratulation for your new job! |
Looks like that in the new version of the data, library(rnaturalearthdata)
countries110[countries110$iso_a3_eh == "FRA"]
countries110[countries110$iso_a3_eh == "NOR"]
r$> setdiff(countries110$iso_a3_eh, countries110$iso_a3)
[1] "NOR" "FRA"
|
Hey Phil,
Thanks for that detective work, indeed that has fixed up a few of these new -99 cells! Many thanks for your detective work! When are you planning your release? I will be starting work next week and high on my to-do-list is to run BeeBDC on an ARM mac and potentially a windows emulator using work computers (although I think it still pass all tests without). Then I will try to push 1.0.4 as close to your release as I can!
Many thanks,
James
|
Thank you very much! I will submit later today :) |
PMassicotte
added a commit
to ropensci/rnaturalearthdata
that referenced
this issue
Feb 9, 2024
… status and provide information about reverse dependency issue The previous resubmission fixed reverse dependencies in the himach and BeeBCD packages. However, there is still 1 reverse dependency (BeeBDC) that failed. The maintainer of BeeBDC has been contacted and is ready to submit an update to CRAN as soon as rnaturealearthdata is accepted. More details can be found in this [GitHub issue](jbdorey/BeeBDC#10 (comment)). Additionally, there were 19 reverse dependencies checked, comparing R CMD check results across CRAN and dev versions of this package. There was 1 new problem identified with the BeeBDC package. No other issues were found. This commit also updates the cran-comments.md file to reflect the current status of the package.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi.
We are planing to release rnaturlearthdata v1.0.0 which ends support to sp in favour of sf.
It appears that these two tests are failing:
BeeBDC/tests/testthat/test-countryOutlieRs.R
Lines 32 to 40 in 2014ec3
Can you confirm on your side?
Regards,
Phil
The text was updated successfully, but these errors were encountered: