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

Function runCurrentChunk

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

Source from the content-addressed store, hash-verified

224}
225
226export async function runCurrentChunk(chunks: RMarkdownChunk[] = _getChunks(),
227 line: number = _getStartLine()): Promise<void> {
228 const currentChunk = getCurrentChunk(chunks, line);
229 if (currentChunk) {
230 await runChunksInTerm([currentChunk.codeRange]);
231 }
232}
233
234export async function runCurrentChunkAndMove(chunks: RMarkdownChunk[] = _getChunks(),
235 line: number = _getStartLine()): Promise<void> {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected