Skip to content

Commit

Permalink
Use echo = TRUE for R source command (#5200)
Browse files Browse the repository at this point in the history
Addresses #5191


### QA Notes

With this change, the `r.sourceCurrentFile` command (which you can use,
for example, by clicking the play button on an `.R` file) now uses `echo
= TRUE`:


![echo-true](https://github.com/user-attachments/assets/f194272e-31c7-4890-800e-dc2ce83f44be)
  • Loading branch information
juliasilge authored Oct 30, 2024
1 parent cd6fa01 commit 1cda237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/positron-r/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export async function registerCommands(context: vscode.ExtensionContext) {
// In the future, we may want to shorten the path by making it
// relative to the current working directory.
if (filePath) {
const command = `source(${JSON.stringify(filePath)})`;
const command = `source(${JSON.stringify(filePath)}, echo = TRUE)`;
positron.runtime.executeCode('r', command, false);
}
} catch (e) {
Expand Down

0 comments on commit 1cda237

Please sign in to comment.