(cwd?: string | URL)
| 329 | } |
| 330 | |
| 331 | export async function getRVersion(cwd?: string | URL): Promise<string | undefined> { |
| 332 | return await executeRCommand('cat(as.character(getRversion()))', cwd); |
| 333 | } |
| 334 | |
| 335 | export 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); |
nothing calls this directly
no test coverage detected