map_functions_to_scripts {risk.assessr}R Documentation

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

Description

adapted from mpn.scorecard

adapted from mpn.scorecard

Usage

map_functions_to_scripts(exports_df, pkg_source_path, verbose)

map_functions_to_scripts(exports_df, pkg_source_path, verbose)

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

Value

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

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


[Package risk.assessr version 2.0.0 Index]