You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My use case is an empty table showing what information will be displayed. The end user will enter info in a Shiny app and then the table will update. My workaround will be to populate the table with 0s. Edit: this also happens with 0. The error happened in the print method, when it is applying the functions to the columns.
library(gt)
grand_summary_rows(gt(data.frame(a= c(1,2), b=NA_real_)), columns= vars(b),
fns=list(max=~max(.)))
#> Error: Column `b` must be length 1 (the number of rows), not 0
Created on 2020-01-17 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered:
Thanks for reporting this and sorry for waiting until now to respond. I'm able to reproduce the error in my environment and I do believe this requires fixing.
I am running into the same issue. The following reprex might help trace the problem. I think it has to do with the mean of a vector that is all NA returning NaN even with na.rm=TRUE.
latest from github (GithubSHA1: 883df9a)
My use case is an empty table showing what information will be displayed. The end user will enter info in a Shiny app and then the table will update. My workaround will be to populate the table with 0s. Edit: this also happens with 0. The error happened in the print method, when it is applying the functions to the columns.
Created on 2020-01-17 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: