Annotate package calls
annotate_pkg_calls(string_og, pkg_field = "Title")
Text string (script) with package load calls.
Field from package description to retrieve, defaults to "Title"
Text string with package Title annotations. Will make note of packages not currently installed.
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"