Skip to contents

Annotate package calls

Usage

annotate_pkg_calls(string_og, pkg_field = "Title")

Arguments

string_og

Text string (script) with package load calls.

pkg_field

Field from package description to retrieve, defaults to "Title"

Value

Text string with package Title annotations. Will make note of packages not currently installed.

Examples

test_string <- c("library(boot)\nrequire(tools)")
annotate_pkg_calls(test_string)
#> [1] "library(boot) # Bootstrap Functions (Originally by Angelo Canty for S)\nrequire(tools) # Tools for Package Development"