Description Usage Arguments Details Value Examples
Extracts parts from the file(s) based on their extension, writes them to disk and process further based on th eoptions given.
extract
uses extract.XXX
to extract the parts from a file based on the file extension XXX
.
option.YYY
is used to process the file written to disk further.
1 |
files |
character: a vector with file name(s) |
quiet |
logical: should be info messages suppressed? (default: |
write |
logical: should be written to disk? (default: |
... |
named parameters: the parameter .XXX should contain a regular expression to extract |
Currently are supported:
extract.tex
extraction from tex files
option.R
further processing of R
files
You may provide further extract.XXX
or option.YYY
functions.
invisibly a list of files written to disk
1 2 3 4 5 6 7 8 9 10 11 12 13 | file <- system.file("example.tex", package="extpro")
# use a temporary directory
dir <- setwd(tempdir(TRUE))
file.copy(file, "example.tex")
#
extract("example.tex")
# show results
list.files()
tools::texi2pdf("example.tex")
# if Linux (Ubuntu): system('evince "example.pdf"')
# if Mac OS: system('open "example.pdf"')
# if Windows: system('start "example.pdf"')
setwd(dir)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.