Scans R source files for package and function use, then builds citations from configurable package universes. Supports .R, .Rmd, and .qmd files, resolves unqualified calls by attachment order and re-export origin, and leaves each package collection to define its own citations. See 'stanflow' < https://github.com/VisruthSK/stanflow> for an example usage.
ascribe scans R projects for package and function use. Other packages can use the results to generate citations without maintaining their own parser.
You can install the development version of ascribe from GitHub with:
# install.packages("pak")
pak::pak("VisruthSK/ascribe")
Build a package universe, then cite the code that uses it:
library(ascribe)
universe <- build_universe_data("stats")
usage <- scan_usage(path, universe)
cite_usage(usage)
lapply(x, mean) and purrr::map(x, sd).{r}. Plain fenced blocks with an r info string are skipped.library() does not establish attachment state for another file.package_citations for packages that are unavailable locally.