Learn R Programming

annotater (version 0.2.4)

annotate_repostitle: Annotate package titles and repository sources

Description

Annotate package titles and repository sources

Usage

annotate_repostitle(string_og)

Value

Text string with package titles and 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.

Arguments

string_og

Text string (script) with package load calls.

Details

Some annotations may be long, check for possible line breaks introduced into your script.

Examples

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

Run the code above in your browser using DataLab