tidyfun / tf

S3 classes and methods for tidy functional data
https://tidyfun.github.io/tf/
GNU Affero General Public License v3.0
6 stars 2 forks source link

`vctrs` implementation not according to standard #77

Closed fabian-s closed 4 months ago

fabian-s commented 5 months ago
> x <- tf_rgp(2, arg = seq(0, 1, length.out = 11))
> tfb_k5 <- x |> tfb(k = 5)
> tfb_k10 <- x |> tfb(k = 10)
> c(tfb_k5, tfb_k10)
empty or missing input `data`; returning prototype of length 0 
### this comes from vec_ptype2 ' attempt to establish a common superclass by generating empty prototypes, I think
Error in `map()`: 
ℹ In index: 1.
Caused by error in `tf_rebase()` at tf/R/rebase-predict.R:69:3:  
! Assertion on 'all.equal(tf_domain(object), tf_domain(basis_from))' failed: Must be TRUE. 
### this error comes from trying to concatenate the empty prototype to the first (top-level) argument  ?!??
fabian-s commented 5 months ago
fabian-s commented 5 months ago