spot_pkgs_files()
: Spot all packages that show-up in R or Rmarkdown
documents in a dataframe of filepaths.
spot_funs_files()
: Spot all functions and their corresponding packages
that show-up in R or Rmarkdown documents in a dataframe of filepaths.
Arguments
- df
Dataframe containing a column of
absolute_paths
.- ...
Arguments passed onto
spot_{pkgs|funs}()
.
Value
Dataframe with relative_paths
and absolute_paths
of file paths
along with a list-column spotted
containing purrr::safely()
named list
of "result" and "error" for each file parsed. Use unnest_results()
to
unnest only the "result" values.
Details
A purrr::safely()
wrapper for mapping spot_pkgs()
or spot_funs()
across
multiple filepaths.
Defaults are meant for files where package libraries are referenced within the files themselves.