Skip to content
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

CRAN errors reproduced in sf/sp/rgdal/raster revdeps #3

Open
rsbivand opened this issue Mar 31, 2020 · 0 comments
Open

CRAN errors reproduced in sf/sp/rgdal/raster revdeps #3

rsbivand opened this issue Mar 31, 2020 · 0 comments

Comments

@rsbivand
Copy link

rsbivand commented Mar 31, 2020

Please try to replicate the errors with PROJ >= 6, GDAL >= 3, and CRAN sf:

* checking examples ... ERROR
Running examples in ‘brazilmaps-Ex.R’ failed
The error most likely occurred in:

> ### Name: get_brmap
> ### Title: Get Brazilian maps from different geographic levels
> ### Aliases: get_brmap
> ### Keywords: IBGE geographic levels shapefile spatial
> 
> ### ** Examples
> 
> ## Retrieving the map from the State of Rio de Janeiro
> rio_map <- get_brmap(geo = "State",
+                      geo.filter = list(State = 33),
+                      class = "sf")
Error: All columns in a tibble must be vectors.
✖ Column `geometry` is a `sfc_MULTIPOLYGON/sfc` object.
Backtrace:
     █
  1. └─brazilmaps::get_brmap(...)
  2.   └─`%>%`(...)
  3.     ├─base::withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  4.     └─base::eval(quote(`_fseq`(`_lhs`)), env, env)
  5.       └─base::eval(quote(`_fseq`(`_lhs`)), env, env)
  6.         └─brazilmaps:::`_fseq`(`_lhs`)
  7.           └─magrittr::freduce(value, `_function_list`)
  8.             └─function_list[[i]](value)
  9.               ├─dplyr::filter(., brmap[[(names(geo.filter)[i])]] %in% geo.filter[[i]])
 10.               └─dplyr:::filter.data.frame(...)
 11.                 ├─base::as.data.frame(filter(tbl_df(.data), ..., .preserve = .preserve))
 12.                 ├─dplyr::filter(tbl_df(.data), ..., .preserve = .preserve)
 13.                 └─dplyr::tbl_df(.data)
 14.                   ├─tibble::as_tibble(data, .name_repair = "chec
Execution halted

Please refer to sf PROJ issues for links to containers, or install PROJ/GDAL yourself to check.

Probably a dplyr/tidyverse non-backwards-compatible problem, mute example if easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant