Usage
## S3 method for class 'default}(con, numerate=TRUE, lines=-1, wrap=79, highlight=NULL, ...)':
displayCodeundefined
- con
{A connection
, a character
string filename, or a character
vector
(of length two or more) of source code.}
- numerate
{If TRUE
, line are numbers, otherwise not.}
- lines
{If a single numeric
, the maximum number of lines to show.
If -1, all lines are shown. If a vector
of numeric
, the lines
numbers to display.}
- wrap
{The (output) column numeric
where to wrap lines.}
- highlight
{A vector
of line number to be highlighted.}
- ...
{Not used.}
Returns nothing.
file <- system.file("DESCRIPTION", package="R.utils")
cat("-----------------------------------------------------------------
")
cat(file, ":
", sep="")
cat("-----------------------------------------------------------------
")
displayCode(file)
cat("
")
file <- system.file("CONTENTS", package="R.utils")
cat("-----------------------------------------------------------------
")
cat(file, ":
", sep="")
cat("-----------------------------------------------------------------
")
displayCode(file, numerate=FALSE, lines=100:110, wrap=65)
cat("
")
file <- system.file("CONTENTS", package="R.utils")
cat("-----------------------------------------------------------------
")
cat(file, ":
", sep="")
cat("-----------------------------------------------------------------
")
displayCode(file, lines=100:110, wrap=65, highlight=c(101,104:108))
[object Object],[object Object]
file
IO