code: Show code expressions

Description Usage Arguments Details Value

View source: R/vizcache.R

Description

Show code expressions corresponding to a given source file

Usage

1
2
code(num = NULL, full = FALSE)
showcode()

Arguments

num

expression sequence number

full

logical, should the full expression be shown or a one-line abbreviated version?

Details

These functions can be used to show the expressions for a given source file. By default, code shows all expressions in a file in a one-line abbreviated form along with their expression sequence numbers. To see each expression in its entirety, the argument full = TRUE must be set. If any expressions have been marked to be skipped by skipcode, those expressions will be annotated with an asterisk.

showcode shows the original source file in the pager, which can be useful if one is interested in seeing any comments.

Value

An R expression object containing the expressions shown.


rdpeng/cacher documentation built on May 27, 2019, 3:06 a.m.