Closed Andryas closed 2 years ago
@Andryas could you make the example simpler, e.g. outside of shiny
?
No, I think that outsided the shiny everything will work as expect.
I see this if I print out the tb$btn
# [1] 1
# attr(,"class")
# [1] "integer" "shinyActionButtonValue"
so I think the shiny team accidentally appended a class rather than prepended one.
I can reproduce with this minimal example:
library(vctrs)
x <- structure(1L, class = c("integer", "foo"))
vec_c(x, x)
#> Error: `vec_ptype2.integer.integer()` is implemented at C level.
#> This R function is purely indicative and should never be called.
Created on 2022-01-10 by the reprex package (v2.0.1)
fixed on the shiny side: https://github.com/rstudio/shiny/pull/3570
Just to understand why this is happening. The problem is when I used
dplyr::bind_rows
I got an error but if I userbind
works well.To see the error just uncomment the
# aux$custo_dinamico_tb <- dplyr::bind_rows(aux$custo_dinamico_tb, tb)
and commentaux$custo_dinamico_tb <- rbind(aux$custo_dinamico_tb, tb)
.The error is as follows: