Features
Provides an authoritative and comprehensive guide to the knitr package in R
Emphasizes reproducible research
Covers both simple examples and full applications, from homework to websites to books
Describes a wide range of options, useful tricks, and solutions
Explains the internal design and extensions of the knitr package
Offers demos and other information about the package on the author's website
Quickly and Easily Write Dynamic Documents
Suitable for both beginners and advanced users, Dynamic Documents with R and knitr, Second Edition makes writing statistical reports easier by integrating computing directly with reporting. Reports range from homework, projects, exams, books, blogs, and web pages to virtually any documents related to statistical graphics, computing, and data analysis. The book covers basic applications for beginners while guiding power users in understanding the extensibility of the knitr package.
New to the Second Edition
A new chapter that introduces R Markdown v2
Changes that reflect improvements in the knitr package
New sections on generating tables, defining custom printing methods for objects in code chunks, the C/Fortran engines, the Stan engine, running engines in a persistent session, and starting a local server to serve dynamic documents
Boost Your Productivity in Statistical Report Writing and Make Your Scientific Computing with R Reproducible
Like its highly praised predecessor, this edition shows you how to improve your efficiency in writing reports. The book takes you from program output to publication-quality reports, helping you fine-tune every aspect of your report.
Author(s): Yihui Xie
Series: Chapman & Hall/CRC The R Series
Edition: 2nd
Publisher: Chapman and Hall/CRC
Year: 2015
Language: English
Commentary: Computational Statistics
Pages: C, xxviii, 263, B
Tags: Библиотека;Компьютерная литература;R;
Introduction
Reproducible Research
Literature
Good and Bad Practices
Barriers
A First Look
Setup
Minimal Examples
Quick Reporting
Extracting R Code
Editors
RStudio
LYX
Emacs/ESS
Other Editors
Document Formats
Input Syntax
Document Formats
Output Renderers
R Scripts
Text Output
Inline Output
Chunk Output
Tables
Automatic Printing
Themes
Graphics
Graphical Devices
Plot Recording
Plot Rearrangement
Plot Size in Output
Extra Output Options
The tikz Device
Figure Environment
Figure Path
Cache
Implementation
Write Cache
When to Update Cache
Side Effects
Chunk Dependencies
Load Cache Manually
Other Options
Cross Reference
Chunk Reference
Code Externalization
Child Documents
Hooks
Chunk Hooks
Examples
Language Engines
Design
Languages and Tools
Persistent Sessions
Tricks and Solutions
Chunk Options
Package Options
Typesetting
Utilities
Debugging
Multilingual Support
Publishing Reports
RStudio
Pandoc
HTML5 Slides
Jekyll
WordPress
R Markdown
Overview
Pandoc’s Markdown Extensions
Output Formats
Interactive Documents with Shiny
Extending R Markdown v2
Changes in R Markdown from v1 to v2
Applications
Homework
Serve Dynamic Documents
Web Site and Blogging
Package Vignettes
Books
Literate Programming for R Packages
Other Tools
Sweave
Other R Packages
Python Packages
More Tools
Appendix: Internals
Bibliography
Index