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: |
silent |
logical: should the report of messages be suppressed (default: |
minlines |
integer: only expressions with |
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]