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

dplyr crash when we parse sf columns with different names #1921

Open
latot opened this issue Mar 27, 2024 · 0 comments
Open

dplyr crash when we parse sf columns with different names #1921

latot opened this issue Mar 27, 2024 · 0 comments

Comments

@latot
Copy link

latot commented Mar 27, 2024

Hi!, finally I was able to find a reprex for this bug:

a <- sf::st_sf(geom1 = sf::st_sfc())

b <- sf::st_sf(geom2 = sf::st_sfc())

dplyr::bind_rows(a, b)
Error in `vec_rbind()`:
! `c()` method returned a vector of unexpected size 3 instead of 0.In file c.c at line 412.This is an internal error that was detected in the vctrs package.
  Please report it at <https://github.com/r-lib/vctrs/issues> with a reprex and the full backtrace.
Backtrace:1. ├─dplyr::bind_rows(a, b)
 2. │ └─vctrs::vec_rbind(!!!dots, .names_to = .id, .error_call = current_env())
 3. └─rlang:::stop_internal_c_lib(...)
 4.   └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame)

sessionInfo:

R version 4.3.2 (2023-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Gentoo Linux

Matrix products: default
BLAS:   /usr/lib64/libblas.so.3.12.0 
LAPACK: /usr/lib64/liblapack.so.3.12.0

locale:
 [1] LC_CTYPE=es_CL.utf8       LC_NUMERIC=C             
 [3] LC_TIME=es_CL.utf8        LC_COLLATE=es_CL.utf8    
 [5] LC_MONETARY=es_CL.utf8    LC_MESSAGES=es_CL.utf8   
 [7] LC_PAPER=es_CL.utf8       LC_NAME=C                
 [9] LC_ADDRESS=C              LC_TELEPHONE=C           
[11] LC_MEASUREMENT=es_CL.utf8 LC_IDENTIFICATION=C      

time zone: Chile/Continental
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] utf8_1.2.4         R6_2.5.1           tidyselect_1.2.0   winch_0.1.1       
 [5] e1071_1.7-14       magrittr_2.0.3     glue_1.7.0         tibble_3.2.1      
 [9] KernSmooth_2.23-22 pkgconfig_2.0.3    generics_0.1.3     dplyr_1.1.4       
[13] lifecycle_1.0.4    classInt_0.4-10    sf_1.0-16          cli_3.6.2         
[17] fansi_1.0.6        grid_4.3.2         vctrs_0.6.5        DBI_1.2.1         
[21] proxy_0.4-27       class_7.3-22       compiler_4.3.2     tools_4.3.2       
[25] pillar_1.9.0       Rcpp_1.0.12        rlang_1.1.3        units_0.8-5

Thx!

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