Highlights of the Knitr Package
summary
Knitr now accepts chunk options written inside the chunk as #| hash-pipe comments or as YAML, with editor completion when using YAML; a helper convert_chunk_header converts old headers. Chunks can reuse options or bodies via opts.label and ref.label (wrap labels in I() to copy both), and local options override reused ones. The file option reads one or more external scripts into a chunk. New engines include comment, verbatim, embed, and exec; exec writes the chunk to a file and runs any command with optional engine.opts arguments.
AI-written summary · about
chapters (10)
- 0:00Start
- 3:23I. Write chunk options in chunk body
- 6:12Convert the old syntax to new syntax
- 6:34Reuse chunk options and/or content from other chunks
- 8:27Reuse both chunk options & content
- 9:20Quick tips
- 12:18New engines in knitr
- 14:53The embed engine to embed external files and display their content verbatim.
- 16:01The exec engine to execute an arbitrary system command on a file that contains the content of the chunk. The command is specified via the chunk option command, e.g..
- 19:00Recap
related talks
20mHighlights of the Knitr Package
10mHow to write a report using R Markdown
16mUsing rmarkdown and parameterised reports
12mFrom summarizing projects to setting tags, uses of parsing R files
22mRMarkdown Driven Development
23mHow Rmarkdown changed my life
05mCode Samples That Compile Even More Easily
30mMonday Lightning Talks
