knitr-package
(Package: knitr) :
A general-purpose tool for dynamic report generation in R
This is an alternative tool to Sweave with a more flexible design and new features like caching and finer control of graphics. It is not limited to LaTeX and is ready to be customized to process other file formats. See the package website in the references for more information and examples.
● Data Source:
CranContrib
● Keywords:
● Alias: knitr, knitr-package
●
0 images
|
stitch
(Package: knitr) :
Automatically create a report based on an R script and a template
This is a convenience function for small-scale automatic reporting based on an R script and a template. The default template is an Rnw file (LaTeX); stitch_rhtml() and stitch_rmd() are wrappers on top of stitch() using the R HTML and R Markdown templates respectively.
● Data Source:
CranContrib
● Keywords:
● Alias: stitch, stitch_rhtml, stitch_rmd
●
0 images
|
plot_crop
(Package: knitr) :
Crop a plot (remove the edges) using PDFCrop or ImageMagick
The command pdfcrop x x is executed on a PDF plot file, and convert x -trim x is executed for other types of plot files, where x is the plot filename.
● Data Source:
CranContrib
● Keywords:
● Alias: plot_crop
●
0 images
|
rst2pdf
(Package: knitr) :
A wrapper for rst2pdf
Convert reST to PDF using rst2pdf (which converts from rst to PDF using the ReportLab open-source library).
● Data Source:
CranContrib
● Keywords:
● Alias: rst2pdf
●
0 images
|
knit2html
(Package: knitr) :
Convert markdown to HTML using knit() and markdownToHTML()
This is a convenience function to knit the input markdown source and call markdownToHTML() in the markdown package to convert the result to HTML.
● Data Source:
CranContrib
● Keywords:
● Alias: knit2html
●
0 images
|
spin_child
(Package: knitr) :
Spin a child R script
This function is similar to knit_child() but is used in R scripts instead. When the main R script is not called via spin() , this function simply executes the child script via sys.source() , otherwise it calls spin() to spin the child script into a source document, and uses knit_child() to compile it. You can call this function in R code, or using the syntax of inline R expressions in spin() (e.g. {{knitr::spin_child('script.R')}} ).
● Data Source:
CranContrib
● Keywords:
● Alias: spin_child
●
0 images
|
set_alias
(Package: knitr) :
Set aliases for chunk options
We do not have to use the chunk option names given in knitr; we can set aliases for them. The aliases are a named character vector; the names are aliases and the elements in this vector are the real option names.
● Data Source:
CranContrib
● Keywords:
● Alias: set_alias
●
0 images
|
asis_output
(Package: knitr) :
Mark an R object with a special class
This is a convenience function that assigns the input object a class named knit_asis , so that knitr will treat it as is (the effect is the same as the chunk option results = 'asis' ) when it is written to the output.
● Data Source:
CranContrib
● Keywords:
● Alias: asis_output
●
0 images
|
include_url
(Package: knitr) :
Embed a URL as an HTML iframe or a screenshot in pkg{knitr
When the output format is HTML, include_url() inserts an iframe in the output; otherwise it takes a screenshot of the URL and insert the image in the output. include_app() takes the URL of a Shiny app and adds ?showcase=0 to it (to disable the showcase mode), then passes the URL to include_url() .
● Data Source:
CranContrib
● Keywords:
● Alias: include_app, include_url
●
0 images
|
hook_pdfcrop
(Package: knitr) :
Built-in chunk hooks to extend knitr
Hook functions are called when the corresponding chunk options are not NULL to do additional jobs beside the R code in chunks. This package provides a few useful hooks, which can also serve as examples of how to define chunk hooks in knitr.
● Data Source:
CranContrib
● Keywords:
● Alias: hook_optipng, hook_pdfcrop, hook_plot_custom, hook_purl
●
0 images
|