View source: R/annotate_repo_source.R
annotate_repo_source | R Documentation |
Annotate repository sources
annotate_repo_source(string_og)
string_og |
text string (script) with package load calls |
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.
test_string <- c("library(boot)\nrequire(lattice)")
annotate_repo_source(test_string)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.