Computes a small one-row summary of earliest known dates across:
first commit in the repo (any file),
first commit mentioning/introducing
fname(per yourget_first_commit()logic),first GitHub release/export date for
fname(perget_first_export_github()),first CRAN release date for the package (via
get_first_release()),first CRAN version that explicitly exports
fname(viaget_first_export_cran()).
Arguments
- user
Character scalar. GitHub owner/user (e.g.
"tidyverse").- repo
Character scalar. GitHub repo name (and assumed CRAN package name).
- fname
Character scalar. Symbol to look up (e.g.
"pivot_longer").- cran_db
Optional
data.framereturned bytools::CRAN_package_db(). IfNULL, it is retrieved internally.- archive_df
Optional archive lookup
data.framewith columnspackageandarchive_date, typically frombuild_archive_df(). IfNULL, it is retrieved internally.
Value
A one-row data.frame with columns:
- first_repo
Earliest commit date in the repository (
DateorNA).- first_commit
Earliest commit date returned by
get_first_commit()forfname(DateorNA).- first_gh
Earliest GitHub export/release date for
fnameperget_first_export_github()(DateorNA).- first_release
Earliest CRAN release date for the package per
get_first_release()(DateorNA).- first_cran
Earliest CRAN export date for
fnameperget_first_export_cran()(DateorNA).
Details
All returned values are Date scalars (or NA) and the function returns a
one-row data.frame.
This function assumes the CRAN package name matches repo. If that’s not
always true in your workflow, add a separate pkg argument and pass that to
get_first_release() and get_first_export_cran().