Learn R Programming

annotater (version 0.2.4)

annotate_repo_source: Annotate repository sources

Description

Annotate repository sources

Usage

annotate_repo_source(string_og)

Value

text string with package repository source 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. Also ignores base packages. Local installs now annotated as such.

Arguments

string_og

text string (script) with package load calls

Examples

Run this code
test_string <- c("library(knitr)\nrequire(datasets)")
annotate_repo_source(test_string)

Run the code above in your browser using DataLab