MCPcopy Index your code
hub / github.com/REditorSupport/vscode-R / getRVersion

Function getRVersion

src/util.ts:331–333  ·  view source on GitHub ↗
(cwd?: string | URL)

Source from the content-addressed store, hash-verified

329}
330
331export async function getRVersion(cwd?: string | URL): Promise<string | undefined> {
332 return await executeRCommand('cat(as.character(getRversion()))', cwd);
333}
334
335export async function getRPackageVersion(name: string, cwd?: string | URL): Promise<string | undefined> {
336 const result = await executeRCommand(`cat(if (requireNamespace('${name}', quietly = TRUE)) as.character(utils::packageVersion('${name}')) else '')`, cwd);

Callers

nothing calls this directly

Calls 1

executeRCommandFunction · 0.85

Tested by

no test coverage detected