All Projects β†’ yihui β†’ Printr

yihui / Printr

Some (magical) printing methods for knitr

Programming Languages

r
7636 projects

Labels

Projects that are alternatives of or similar to Printr

Blogdown Jekyll
Automatically knit R Markdown documents, build them with Jekyll, and serve the website with servr locally
Stars: ✭ 191 (+63.25%)
Mutual labels:  knitr
mojito
πŸ§ͺ Source-controlled split testing stack for building, launching and analysing A/B tests.
Stars: ✭ 49 (-58.12%)
Mutual labels:  knitr
Kableextra
Construct Complex Table with knitr::kable() + pipe.
Stars: ✭ 465 (+297.44%)
Mutual labels:  knitr
Atom Latex
Compile LaTeX or knitr documents from within Atom
Stars: ✭ 219 (+87.18%)
Mutual labels:  knitr
xaringan slides
πŸ“Ί Links to HTML5 presentations made using the R package {xaringan}.
Stars: ✭ 20 (-82.91%)
Mutual labels:  knitr
formr.org
Chain simple surveys into longer runs to build complex studies. Use R to generate pretty feedback and complex designs.
Stars: ✭ 90 (-23.08%)
Mutual labels:  knitr
Liftr
🐳 Containerize R Markdown documents for continuous reproducibility
Stars: ✭ 155 (+32.48%)
Mutual labels:  knitr
Klippy
Copy to Clipboard Buttons for RMarkdown HTML Documents
Stars: ✭ 40 (-65.81%)
Mutual labels:  knitr
dicy
A builder for LaTeX, knitr, literate Agda, literate Haskell and Pweave that automatically builds dependencies.
Stars: ✭ 22 (-81.2%)
Mutual labels:  knitr
Knitr Examples
A collection of knitr examples
Stars: ✭ 389 (+232.48%)
Mutual labels:  knitr
papeR
A toolbox for writing Sweave or other LaTeX-based papers and reports and to prettify the output of various estimated models.
Stars: ✭ 26 (-77.78%)
Mutual labels:  knitr
epoxy
Extra-strength glue engines for R Markdown and Quarto
Stars: ✭ 141 (+20.51%)
Mutual labels:  knitr
Econometricswithr
πŸ“–An interactive companion to the well-received textbook 'Introduction to Econometrics' by Stock & Watson (2015)
Stars: ✭ 260 (+122.22%)
Mutual labels:  knitr
Knitr Book
Dynamic Documents with R and knitr
Stars: ✭ 215 (+83.76%)
Mutual labels:  knitr
Jupytext
Jupyter Notebooks as Markdown Documents, Julia, Python or R scripts
Stars: ✭ 4,969 (+4147.01%)
Mutual labels:  knitr
Knitr
A general-purpose tool for dynamic report generation in R
Stars: ✭ 2,134 (+1723.93%)
Mutual labels:  knitr
reportfactory
Lightweight infrastructure to handle multiple rmarkdown reports
Stars: ✭ 68 (-41.88%)
Mutual labels:  knitr
Wraprmd
RStudio addin for wrapping RMarkdown paragraphs
Stars: ✭ 87 (-25.64%)
Mutual labels:  knitr
Knitrhooks
Extend {knitr} with hooks
Stars: ✭ 32 (-72.65%)
Mutual labels:  knitr
Rmarkdown Cookbook
R Markdown Cookbook. A range of tips and tricks to make better use of R Markdown.
Stars: ✭ 324 (+176.92%)
Mutual labels:  knitr

printr

Build Status

This is a companion package to knitr. Its main purpose is to extend the S3 generic function knit_print() in knitr, which is the default value of the chunk option render, as explained in the vignette knit_print.html.

You can install the stable version from CRAN or the development version from my personal repo:

# CRAN version
install.packages('printr')

# or the dev version
install.packages(
  'printr',
  type = 'source',
  repos = c('https://xran.yihui.org', 'https://cran.rstudio.com')
)

To enable the printing methods defined in this package, just library(printr) in a code chunk (in the beginning) of your knitr document. Then some objects will be printed differently with what you would have seen in a normal R console. For example:

  • matrices, data frames, and contingency tables are printed as tables (LaTeX, HTML, or Markdown, depending on your output format)
  • the help page (from ?foo or help(foo)) can be rendered as HTML, LaTeX, or plain text, and you can also specify which section(s) of the help page to include in the output
  • the results from browseVignettes(), help.search(), data(), and vignette() are rendered as tables
  • the package information from library(help = 'foo') is rendered as plain text

For more information, please check out the package vignette:

vignette('printr', package = 'printr')

You are welcome to contribute more S3 methods to this package, and you may want to read the existing methods in this package before you get started. In most cases, I guess you will end up rendering either plain text (see knit_print.packageInfo for example) or tables (see knit_print.matrix) in the output.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].