Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

Inline code detection and extraction utilities

Source:R/rmd_inline_code_utils.R
inline_code_utils.Rd

Functions for detecting and extracting inline code chunks from AST nodesafter the initial parsing phase.

Usage

rmd_has_inline_code(x, engine=NULL)rmd_extract_inline_code(x, flatten=FALSE)

Arguments

x

An AST node, list of nodes, or character vector

engine

character vector, optional glob patterns for matching inline code engine names.If NULL (default), matches any inline code.

flatten

Return a flat list inline codes ifTRUE

Value

  • rmd_has_inline_code(): logical vector indicating which nodes contain inline code

  • rmd_extract_inline_code(): list of inline code objects found in the content


[8]ページ先頭

©2009-2025 Movatter.jp