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.
rmd_has_inline_code(x, engine=NULL)rmd_extract_inline_code(x, flatten=FALSE)
An AST node, list of nodes, or character vector
character vector, optional glob patterns for matching inline code engine names.If NULL (default), matches any inline code.
Return a flat list inline codes ifTRUE
TRUE
rmd_has_inline_code(): logical vector indicating which nodes contain inline code
rmd_has_inline_code()
rmd_extract_inline_code(): list of inline code objects found in the content
rmd_extract_inline_code()