We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dbc444 commit 793d1d6Copy full SHA for 793d1d6
src/execute/rmd.ts
@@ -195,9 +195,9 @@ async function callR<T>(
195
outputFilter?: (output: string) => string,
196
reportError = true,
197
): Promise<T> {
198
- // establish cwd for execute (the current dir if there is an renv
+ // establish cwd for our R scripts (the current dir if there is an renv
199
// otherwise the project dir if specified)
200
- const cwd = withinActiveRenv() ? undefined : projectDir ?? Deno.cwd();
+ const cwd = withinActiveRenv() ? Deno.cwd() : projectDir ?? Deno.cwd();
201
202
// create a temp file for writing the results
203
const resultsFile = Deno.makeTempFileSync(
0 commit comments