annotate_pkg_calls: Annotate package calls

View source: R/annotate_pkg_calls.R

annotate_pkg_callsR Documentation

Annotate package calls

Description

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)

luisDVA/annotater documentation built on Feb. 2, 2024, 1:08 a.m.