Skip to contents

adapted from mpn.scorecard

Usage

get_toplevel_assignments(pkg_source_path)

Arguments

pkg_source_path

a file path pointing to an unpacked/untarred package directory

Value

A data.frame with the columns `function` and `code_script` with a row for every top-level object defined in the package.

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.