title: How find code of the function in R package code?
body: <p>I want to find the code of <code>DBI::dbGetRowsAffected</code>. I downloaded the package <code>DBI</code> from <a href="https://github.com/r-dbi/DBI" rel="nofollow noreferrer">https://github.com/r-dbi/DBI</a> and found only this by <code>dbGetRowsAffected</code>:</p>
  
  <pre><code>#' The number of rows affected
  #'
  #' This method returns the number of rows that were added, deleted, or updated
  #' by a data manipulation statement.
  #'
  #' @template methods
  #' @templateVar method_name dbGetRowsAffected
  #'
  #' @inherit DBItest::spec_meta_get_rows_affected return
  #'
  #' @inheritParams dbClearResult
  #' @family DBIResult generics
  #' @export
  #' @examples
  #' con &lt;- dbConnect(RSQLite::SQLite(), ":memory:")
  #'
  #' dbWriteTable(con, "mtcars", mtcars)
  #' rs &lt;- dbSendStatement(con, "DELETE FROM mtcars")
  #' dbGetRowsAffected(rs)
  #' nrow(mtcars)
  #'
  #' dbClearResult(rs)
  #' dbDisconnect(con)
  setGeneric("dbGetRowsAffected",
    def = function(res, ...) standardGeneric("dbGetRowsAffected"),
    valueClass = "numeric"
  )
  </code></pre>
  
  <p>but where is the implementation of it? I can see here is some inheritance from <code>DBItest::spec_meta_get_rows_affected return</code>. So I have downloaded <code>DBItest</code> package from <a href="https://github.com/r-dbi/DBItest" rel="nofollow noreferrer">https://github.com/r-dbi/DBItest</a> and search for <code>spec_meta_get_rows_affected</code>. Found that this is just the unit test.</p>