I believe src_dbi
is a function from dbplyr
and not dplyr
.
To get the definition of that function (or the code of that function), just type the function with the brackets so they're not treated as a function call:
dbplyr::src_dbi
And R output:
function (con, auto_disconnect = FALSE)
{
if (is_false(auto_disconnect)) {
disco <- NULL
}
else {
disco <- db_disconnector(con, quiet = is_true(auto_disconnect))
}
structure(list(con = con, disco = disco), class = c("src_dbi",
"src_sql", "src"))
}
<environment: namespace:dbplyr>
Which tells me the namespace and the definition of that function.