Find the first CRAN release exporting a symbol
Source:R/get_first_export_cran.R
get_first_export_cran.RdThis function identifies the earliest version of a package on CRAN that
explicitly exports a given symbol in its NAMESPACE via export().
It intentionally ignores exportPattern() to avoid false positives.
Arguments
- package
Character. The name of the CRAN package (e.g.
"ggplot2").- fname
Character. The symbol to search for (e.g.
"geom_point").- date_only
Logical. If
TRUE, return only the publicationDate. Defaults toFALSE.- repos
Character. The CRAN mirror URL. Defaults to
"https://cloud.r-project.org".- cache_dir
Character. Directory used to cache parsed CRAN metadata. Defaults to
getOption("ggext.cran_cache"), falling back to a temporary directory.
Value
If date_only = TRUE, a Date object or NA.
Otherwise, a one-row data.frame with columns:
package: package namefname: function nameversion: CRAN version where the symbol is first exportedfirst_cran: CRAN publication date (may beNAfor older releases)is_reexport: logical indicating whether the symbol is imported viaimportFrom()(i.e., a re-export)
Returns NULL if the symbol is never exported.