Briefly, it attempts to exploit that some as.data.frame() methods will implicitly use collect() to realise a local data.frame.
For example:
dbplyr:::as.data.frame.tbl_sql
#> function (x, row.names = NULL, optional = NULL, ..., n = Inf)
#> {
#> as.data.frame(collect(x, n = n))
#> }
#> <bytecode: 0x000001b7f118b958>
#> <environment: namespace:dbplyr>
This should ensure that you can still work with e.g. <tbl_sql> classes that will be collect()'ed while not requiring {dplyr} for the fortify.tbl() method. Example demonstrating we can still use lazy data.frames:
This PR aims to fix #4786.
Briefly, it attempts to exploit that some
as.data.frame()
methods will implicitly usecollect()
to realise a local data.frame. For example:This should ensure that you can still work with e.g.
<tbl_sql>
classes that will becollect()
'ed while not requiring {dplyr} for thefortify.tbl()
method. Example demonstrating we can still use lazy data.frames:Created on 2024-07-02 with reprex v2.1.0