annotated: For learners: get annotations

Description Usage Arguments Value Examples

View source: R/create_and_annotated.R

Description

Get annotated output in console.

Usage

1

Arguments

...

A call to a function to get annotations.

Value

The function invisibly returns an evaluated call to a function. For example, if ‘annotated(lm(a ~ b))' was called, it will return fitted 'lm' object, as if annotated weren’t there. Annotations are printed in the console at all times, even when the value is being assigned to an object.

Examples

1
2
3
4
5
if(interactive()) {
 options(annotated.source = "vignettes/lm.annot.R") # set the source file or directory
 require(datasets)
 lin.mod1 <- annotated(lm('dist ~ speed', cars))
}

MaksimRudnev/annotated documentation built on May 24, 2019, 12:35 a.m.