Description Usage Arguments Value Examples
Reads and parses files with R source code.
1 2 3 4 | sourcecode(x, ...)
## Default S3 method:
sourcecode(x, title = x, silent = FALSE, minlines = -1, ...)
|
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 |
a sourcecode object
1 2 3 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.