Learn R Programming

annotater (version 0.2.4)

annotate_fun_calls: Annotate function calls

Description

Annotate function calls

Usage

annotate_fun_calls(string_og)

Value

text string with function call annotations. Will make note of packages not currently installed. Lines with existing comments or annotations are ignored by the regular expression that matches package names. Be aware that package-specific methods (e.g., print or summary methods) will be annotated too.

Arguments

string_og

text string (script) with package load calls

Examples

Run this code
test_string <- c("library(boot)\nrequire(lattice)\ncanonical.theme()")
cat(annotate_fun_calls(test_string))

Run the code above in your browser using DataLab