~/talk

Highlights of the Knitr Package

Talkat rstudio::conf(2022) · 2022-07-25..07-28· [documentation]
name:Yihui Xie
links:none on file
slides:none on file

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

  1. 0:00Start
  2. 3:23I. Write chunk options in chunk body
  3. 6:12Convert the old syntax to new syntax
  4. 6:34Reuse chunk options and/or content from other chunks
  5. 8:27Reuse both chunk options & content
  6. 9:20Quick tips
  7. 12:18New engines in knitr
  8. 14:53The embed engine to embed external files and display their content verbatim.
  9. 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..
  10. 19:00Recap
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.