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

S4 list columns do not work in tidyr::crossing #1164

Open
kendonB opened this issue Jun 23, 2020 · 3 comments
Open

S4 list columns do not work in tidyr::crossing #1164

kendonB opened this issue Jun 23, 2020 · 3 comments
Labels

Comments

@kendonB
Copy link

kendonB commented Jun 23, 2020

library(terra)
#> This is terra version 0.7.1 (alpha-release)
library(tidyr)
#> 
#> Attaching package: 'tidyr'
#> The following objects are masked from 'package:terra':
#> 
#>     extract, pack
f <- system.file("ex/lux.shp", package="terra")
v <- vect(f)
typeof(v)
#> [1] "S4"
crossing(tibble(v= list(v)),
         tibble(v= list(v)))
#> Error: Unsupported type S4

Created on 2020-06-24 by the reprex package (v0.3.0)

@kendonB
Copy link
Author

kendonB commented Jun 23, 2020

related tidyverse/tidyr#735

@hadley
Copy link
Member

hadley commented Jun 29, 2020

Duplicate of #1164

@hadley hadley marked this as a duplicate of #1164 Jun 29, 2020
@hadley hadley closed this as completed Jun 29, 2020
@hadley hadley reopened this Jun 29, 2020
@hadley
Copy link
Member

hadley commented Jun 29, 2020

Oops, I just accidentally closed this as duplicate of itself 🤣 . Here's a more minimal vctrs reprex:

library(terra)
#> Warning: multiple methods tables found for 'rectify'
#> This is terra version 0.7.4 (alpha-release)
#> 
#> NOTE: You are using GDAL version 2.4.2 
#> For full functionality you need at least version 3.0.4

f <- system.file("ex/lux.shp", package="terra")
v <- vect(f)
vctrs::vec_unique(list(v))
#> Error: Unsupported type S4

Created on 2020-06-29 by the reprex package (v0.3.0)

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

No branches or pull requests

3 participants