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

Function runNextChunk

src/rmarkdown/chunks.ts:261–270  ·  view source on GitHub ↗
(chunks: RMarkdownChunk[] = _getChunks(),
    line: number = _getStartLine())

Source from the content-addressed store, hash-verified

259}
260
261export async function runNextChunk(chunks: RMarkdownChunk[] = _getChunks(),
262 line: number = _getStartLine()): Promise<void> {
263 const currentChunk = getCurrentChunk(chunks, line);
264 const nextChunk = getNextChunk(chunks, line);
265
266 // Case: currentChunk is not the last chunk, so run nextChunk
267 if (nextChunk && nextChunk !== currentChunk) {
268 await runChunksInTerm([nextChunk.codeRange]);
269 }
270}
271
272export async function runAboveChunks(chunks: RMarkdownChunk[] = _getChunks(),
273 line: number = _getStartLine()): Promise<void> {

Callers

nothing calls this directly

Calls 5

runChunksInTermFunction · 0.90
_getChunksFunction · 0.85
_getStartLineFunction · 0.85
getCurrentChunkFunction · 0.85
getNextChunkFunction · 0.85

Tested by

no test coverage detected