Learn R Programming

risk.assessr (version 3.0.1)

map_functions_to_scripts: Get all exported functions and map them to R script where they are defined

Description

adapted from mpn.scorecard

Usage

map_functions_to_scripts(exports_df, pkg_source_path, verbose)

Value

A data.frame with the columns `exported_function` and `code_script`.

Arguments

exports_df

data.frame with a column, named `exported_function`, containing the names of all exported functions. Can also have other columns (which will be returned unmodified).

pkg_source_path

a file path pointing to an unpacked/untarred package directory

verbose

check for extra information