Description Usage Arguments Value Examples
Just a wrapper to the python function excerpts.excerpts
.
See https://pypi.org/project/excerpts/ for details.
1 2 3 4 5 6 7 8 9 10 11 12 |
file_name |
Name the file from which to excerpt. |
comment_character |
Should be "#" for R. |
magic_character |
The magic character marking the structuring comments
in |
output_path |
Name the path where to output to. |
allow_pep8 |
Don't bother. See |
prefix |
Give a prefix to use for output files. |
postfix |
Give a postfix to use for output files. |
run_pandoc |
Try to run |
compile_latex |
Try to compile LaTeX if |
pandoc_formats |
A character vector naming the output formats for
|
The status of excerpts.excerpts
.
1 2 3 4 5 6 7 8 9 | root <- system.file(package = "excerptr")
test_files <- file.path(root, "excerpts", "tests", "files")
if (reticulate::py_available())
tryCatch(
excerptr(file_name = file.path(test_files, "some_file.txt"),
output_path = tempdir(), run_pandoc = FALSE,
compile_latex = FALSE,
pandoc_formats = c("tex", "html")),
error = identity)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.