sourcecode {rscc}R Documentation

sourcecode

Description

Reads and parses files with R source code.

Usage

sourcecode(x, ...)

## Default S3 method:
sourcecode(x, title = x, silent = FALSE, minlines = -1, ...)

Arguments

x

character: filenames

...

unused

title

character: vector of program titles (default: x)

silent

logical: should the report of messages be suppressed (default: FALSE)

minlines

integer: only expressions with minlines lines are considered (default: -1), if minlines<0 then whole files will be considered

Value

a sourcecode object

Examples

# example files are taken from https://CRAN.R-project.org/package=SimilaR
files <- list.files(system.file("examples", package="rscc"), "*.R$", full.names=TRUE)
prgs  <- sourcecode(files)

[Package rscc version 0.2.1 Index]