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

Function isRDocument

src/rmarkdown/chunks.ts:5–7  ·  view source on GitHub ↗
(document: vscode.TextDocument)

Source from the content-addressed store, hash-verified

3import { runChunksInTerm } from '../rTerminal';
4
5export function isRDocument(document: vscode.TextDocument) {
6 return (document.languageId === 'r');
7}
8
9function isRChunkLine(text: string) {
10 return (!!text.match(/^#+\s*%%/g));

Callers 3

highlightMethod · 0.90
getChunksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected