When used with dplyr versions >0.5.0, pixiedust functions determine_column_width() and determine_row_height() return width and height of -Inf instead of NA, which are output as invalid LaTeX, e.g. \\parbox[]{-Infpt}.
The change in dplyr is that now, max(x, na.rm = TRUE) returns -Inf if all elements of x are NA, like base R does. This change was in response to issue tidyverse/dplyr#2305, "Hybrid version of max(NAreal, na.rm = TRUE) returns NA".
An example:
library(pixiedust)
fit <- lm(mpg ~ qsec + factor(am) + wt + factor(gear), data = mtcars)
pixiedust:::print_dust_latex(dust(fit))
An excerpt of its output with dplyr 0.6.0. The \\parbox[]{-Infpt} are invalid.
When used with dplyr versions >0.5.0, pixiedust functions
determine_column_width()
anddetermine_row_height()
return width and height of-Inf
instead ofNA
, which are output as invalid LaTeX, e.g.\\parbox[]{-Infpt}
.The change in dplyr is that now,
max(x, na.rm = TRUE)
returns-Inf
if all elements ofx
areNA
, like base R does. This change was in response to issue tidyverse/dplyr#2305, "Hybrid version of max(NAreal, na.rm = TRUE) returns NA".An example:
An excerpt of its output with dplyr 0.6.0. The
\\parbox[]{-Infpt}
are invalid.