MCPcopy Create free account
hub / github.com/REditorSupport/vscode-R / isChunkStartLine

Function isChunkStartLine

src/rmarkdown/chunks.ts:13–19  ·  view source on GitHub ↗
(text: string, isRDoc: boolean)

Source from the content-addressed store, hash-verified

11}
12
13function isChunkStartLine(text: string, isRDoc: boolean) {
14 if (isRDoc) {
15 return (isRChunkLine(text));
16 } else {
17 return (!!text.match(/^\s*```+\s*\{\w+\s*.*$/g));
18 }
19}
20
21function isChunkEndLine(text: string, isRDoc: boolean) {
22 if (isRDoc) {

Callers 2

getChunksFunction · 0.85

Calls 1

isRChunkLineFunction · 0.85

Tested by

no test coverage detected