DFplyr
DFplyr copied to clipboard
Loading DFplyr makes DataFrames unprintable
DFplyr references one or more internal S4Vectors functions that no longer exist in the latest release version. It does so in the custom show
method that it provides for DataFrame, which means that after loading DFplyr, any attempt to print a DataFrame results in the following error:
suppressPackageStartupMessages(library(S4Vectors))
x <- S4Vectors::DataFrame(letters, LETTERS)
print(x) # This works
#> DataFrame with 26 rows and 2 columns
#> letters LETTERS
#> <character> <character>
#> 1 a A
#> 2 b B
#> 3 c C
#> 4 d D
#> 5 e E
#> ... ... ...
#> 22 v V
#> 23 w W
#> 24 x X
#> 25 y Y
#> 26 z Z
suppressPackageStartupMessages(library(DFplyr))
#> Warning: replacing previous import 'S4Vectors::rename' by 'dplyr::rename' when
#> loading 'DFplyr'
print(x) # This throws an error
#> DataFrame with 26 rows and 2 columns
#> Error in get(name, envir = asNamespace(pkg), inherits = FALSE): object 'make_rownames_for_DataTable_display' not found
Created on 2021-04-21 by the reprex package (v2.0.0)