styler (version 1.1.0)

is_code_chunk_header: Identify spinning code chunk header

Description

See https://yihui.name/knitr/demo/stitch/#spin-comment-out-texts for details.

Usage

is_code_chunk_header(pd)

Arguments

pd

A parse table.

Examples

Run this code
# NOT RUN {
style_text(c(
  "# title",
  "some_code <- function() {}",
  "#+ chunk-label, opt1=value1",
  "call(3, 2, c(3:2))"
))
# }

Run the code above in your browser using DataLab