get_toplevel_assignments {risk.assessr} | R Documentation |
list all top-level objects defined in the package code
Description
adapted from mpn.scorecard
adapted from mpn.scorecard
Usage
get_toplevel_assignments(pkg_source_path)
get_toplevel_assignments(pkg_source_path)
Arguments
pkg_source_path |
a file path pointing to an unpacked/untarred package directory |
Details
This is primarily for getting all _functions_, but it also returns top-level declarations, regardless of type. This is intentional, because we also want to capture any global variables or anything else that could be potentially exported by the package.
This is primarily for getting all _functions_, but it also returns top-level declarations, regardless of type. This is intentional, because we also want to capture any global variables or anything else that could be potentially exported by the package.
Value
A data.frame with the columns 'function' and 'code_script' with a row for every top-level object defined in the package.
A data.frame with the columns 'function' and 'code_script' with a row for every top-level object defined in the package.