REditorSupport / vscode-R

R Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=REditorSupport.r
MIT License
1.07k stars 128 forks source link

How to link result from terminal of 'R interactive' and terminal "zsh (already run radian)" #1393

Open DrLuong opened 1 year ago

DrLuong commented 1 year ago

Hi all.

Screenshot 2023-07-08 at 09 36 33

This is what I am wanting to do. I ran "chunk code" and it ran on Terminal of 'R ibteactive' however I want my results to sync to terminal "zsh".

Can someone help me?

Thank you so much

renkun-ken commented 1 year ago

If you need to send code to "active terminal" instead of the R terminal created by vscode-R, then you need to enable r.alwaysUseActiveTerminal in vscode settings so that your code in active editor will be sent to active terminal.

DrLuong commented 1 year ago

If you need to send code to "active terminal" instead of the R terminal created by vscode-R, then you need to enable r.alwaysUseActiveTerminal in vscode settings so that your code in active editor will be sent to active terminal.

Thank you so much.

I just did a few operations but for some reason this message is showing and I can't find the Terminal Dialog. Can you help me?

Screenshot 2023-07-08 at 10 01 32
renkun-ken commented 1 year ago

Would you like to post your r.* entries in vscode settings?

DrLuong commented 1 year ago

Hi renkun-ken I would like sent to you my vscode setting

{ "editor.minimap.enabled": false, "[python]": { "editor.formatOnType": true }, "github.copilot.enable": { "": true, "plaintext": true, "markdown": false, "scminput": false, "quarto": true }, "genieai.enableConversationHistory": true, "genieai.personalizedName": "Geni", "CodeGPT.maxTokens": 2000, "CodeGPT.temperature": 0.5, "security.workspace.trust.untrustedFiles": "open", "github.copilot.advanced": (), "r.alwaysUseActiveTerminal": true, "editor.inlineSuggest.enabled": true, "git.openRepositoryInParentFolders": "never", "terminal.integrated.defaultProfile.osx": "zsh", "r.plot.defaults.colorTheme": "vscode", "workbench.iconTheme": "vscode-icons", "jupyter.askForKernelRestart": false, "workbench.colorTheme": "Monokai Dimmed", "r.rterm.mac": "/Users/rchai/opt/anaconda3/bin/radian", "files.associations": { ".rmd": "markdown" } }

pls, Help me. Thank you so much

gowerc commented 1 year ago

Just to say that I am not able to replicate this issue at all sorry :(

If I set my settings to (and disable all my custom keyboard shortcuts):

    "r.rterm.linux": "/Users/rchai/opt/anaconda3/bin/radian",
    "r.alwaysUseActiveTerminal": true,

Then all my R code chunks are sent to the current active terminal no matter which button / method I use to submit the R code. If no terminal exists then I just get a "No active terminal" error message rather than it trying to launch the radian console.

I would recommend commenting out all your settings, keyboard shortcuts & disabling any other extensions to see it the error still persists. If it goes away then try re-introducing stuff until it comes back.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 365 days with no activity.