As noted by Chrisss and Zheyuan Li :
- An asterisk / star / * next to a method name after
methods
is started indicates that each of these methods is not exported from the dplyr
namespace. - To access the help file, you must use three colons, i.e.
?dplyr:::collect.tbl_sql
- However, there is no help file for these methods, so we need to study the source code to look at the behavior of each of these functions in the corresponding versions.
In 0.4.3
looking at the tbl-sqr.r
in the source code :
collect.tbl_sql <- function(x, ...) { grouped_df(x$query$fetch(), groups(x)) }
and 0.5
:
> dplyr:::collect.tbl_sql function (x, ..., n = 1e+05, warn_incomplete = TRUE) { assert_that(length(n) == 1, n > 0L) if (n == Inf) { n <- -1 } sql <- sql_render(x) res <- dbSendQuery(x$src$con, sql) on.exit(dbClearResult(res)) out <- dbFetch(res, n) if (warn_incomplete) { res_warn_incomplete(res, "n = Inf") } grouped_df(out, groups(x)) }
Thus, we can conclude that the behavior of collect
really changed as described in my question.
source share