Description Usage Arguments Value Examples
Creates a temporary HTML file with source codes and opens it into a browser using browseURL
.
Note that the source code is reformatted.
1 |
prgs |
sourcecode object |
simdf |
similarity object |
n |
integer: comparisons to show (default: |
width.cutoff |
integer: an integer in [20, 500]: if a line's character length is at or over this number, the function will try to break it into a new line (default: |
css |
character: file name of CSS style for highlighting the R code |
invisibly the name of the temporary HTML file
1 2 3 4 5 6 | # 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)
simm <- similarities(documents(prgs))
simdf <- matrix2dataframe(simm)
if (interactive()) browse(prgs, simdf)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.