Title: | Vignette Engine Wrapping Jupyter Notebooks |
---|---|
Description: | Calls the 'Jupyter' script 'nbconvert' to create vignettes from notebooks. Those notebooks ('.ipynb' files) are files containing rich text, code, and its output. Code cells can be edited and evaluated interactively. See <https://jupyter.org/> for more information. |
Authors: | Philipp Angerer |
Maintainer: | Philipp Angerer <[email protected]> |
License: | GPL-3 |
Version: | 1.3.2 |
Built: | 2024-10-31 21:14:25 UTC |
Source: | CRAN |
An R interface for using Jupyter/IPython system calls to convert .ipynb notebooks unsing meta information. When passed "<filename>.ipynbmeta" it will convert "<filename>.ipynb" to "<filename>.<ext>".
nbconvert( file, fmt = c("html", "latex", "markdown", "pdf", "rst", "script", "slides"), quiet = TRUE, ... ) nbconvert_html(file, quiet = TRUE, ...) nbconvert_latex(file, quiet = TRUE, ...) nbconvert_markdown(file, quiet = TRUE, ...) nbconvert_pdf(file, quiet = TRUE, ...) nbconvert_rst(file, quiet = TRUE, ...) nbconvert_script(file, quiet = TRUE, ...) nbconvert_slides(file, quiet = TRUE, ...)
nbconvert( file, fmt = c("html", "latex", "markdown", "pdf", "rst", "script", "slides"), quiet = TRUE, ... ) nbconvert_html(file, quiet = TRUE, ...) nbconvert_latex(file, quiet = TRUE, ...) nbconvert_markdown(file, quiet = TRUE, ...) nbconvert_pdf(file, quiet = TRUE, ...) nbconvert_rst(file, quiet = TRUE, ...) nbconvert_script(file, quiet = TRUE, ...) nbconvert_slides(file, quiet = TRUE, ...)
file |
A file with a .ipynbmeta extension that contains vignette metadata lines |
fmt |
A format supported by |
quiet |
Suppress command output if TRUE (the output will always be shown on error) |
... |
Ignored for now |
Apart from the standard %\VignetteIndexEntry{<name>}
and %\VignetteEngine{<namespace>::<name>}
directives,
it also understands:
%\VignetteTemplate{<format>}{<filename>}
, which will pass a --template
parameter to nbconvert
%\VignettePreprocessors{<format>}{<module>.<Preproc>[, ...]}
, which will pass --<Format>Exporter.preprocessors=["<module>.<Preproc>",...]
to nbconvert
.
The filename of the resulting document, script or presentation
## Not run: path <- system.file('doc/test-vignette.ipynbmeta', package = 'nbconvertR') nbconvert(path, 'pdf') ## End(Not run)
## Not run: path <- system.file('doc/test-vignette.ipynbmeta', package = 'nbconvertR') nbconvert(path, 'pdf') ## End(Not run)