vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

'r.bracketedPaste: true' didn't work or unexcepted more indentation in terminal

Open toxin98 opened this issue 8 months ago • 3 comments

Describe the bug "r.bracketedPaste": true didn't work, after I write options(radian.auto_match = FALSE) into .radian_profile, it worked, but I got more indentation in the terminal

To Reproduce Steps to reproduce the behavior:

I have set "r.bracketedPaste": true, but it didn't work Image

After I write options(radian.auto_match = FALSE) into .radian_profile, it worked, but I got more indentation in the terminal Image

(If applicable) Please attach setting.json

  "r.bracketedPaste": true,
  "r.rpath.windows": "D:\\Program Files\\R\\R-4.3.3\\bin\\R.exe",
  "r.rterm.windows": "D:\\Program files\\Python\\Python312\\Scripts\\radian.exe",
  "r.rterm.option": [
      "--no-site-file",
  ],
  "r.plot.useHttpgd": true,

Environment:

  • OS: [Windows]
  • VSCode Version: [1.98.0]
  • R Version: [4.3.3]
  • vscode-R version: [2.8.4]
  • Python version: [3.12.7]
  • radian version: [0.6.13]

toxin98 avatar Mar 06 '25 17:03 toxin98

That's Radian's issue. I am avoiding using Radian when working on Windows. There simply has no better solution to resolve all those issues raised due to Windows.

I am just using Rterm on Windows. Although not ideal, but have gotten used to it. The only thing that frustrates me is the truncation of input after 80 characters, again this is Windows' issue. But I think R4.5 will solve this.

Fred-Wu avatar Mar 07 '25 00:03 Fred-Wu

It's weird. It works fine on my old computer, but it has the same problem as yours on my new computer. I have tried the new device radian multiple versions will reproduce this problem.

Environment:

Old PC:

  • OS: [Windows 11]
  • VSCode Version: [1.98.1]
  • R Version: [4.4.0]
  • vscode-R version: [2.8.4]
  • Python version: [3.12.7]
  • radian version: [0.6.12]

New PC:

  • OS: [Windows 11]
  • VSCode Version: [1.98.1]
  • R Version: [4.4.0] & [4.4.3]
  • vscode-R version: [2.8.4]
  • Python version: [3.13.2]
  • radian version: [0.6.13] & [0.6.12]

After a whole afternoon of fighting, I finally solved the problem! Just add options(radian.auto_match = FALSE) and options(radian.auto_indentation = FALSE) to .radian_profile!

ManqiZh avatar Mar 12 '25 10:03 ManqiZh

good i solved!!!

MrShadow0624 avatar May 25 '25 09:05 MrShadow0624

It's weird. It works fine on my old computer, but it has the same problem as yours on my new computer. I have tried the new device radian multiple versions will reproduce this problem.

Environment:

Old PC:

  • OS: [Windows 11]
  • VSCode Version: [1.98.1]
  • R Version: [4.4.0]
  • vscode-R version: [2.8.4]
  • Python version: [3.12.7]
  • radian version: [0.6.12]

New PC:

  • OS: [Windows 11]
  • VSCode Version: [1.98.1]
  • R Version: [4.4.0] & [4.4.3]
  • vscode-R version: [2.8.4]
  • Python version: [3.13.2]
  • radian version: [0.6.13] & [0.6.12]

After a whole afternoon of fighting, I finally solved the problem! Just add options(radian.auto_match = FALSE) and options(radian.auto_indentation = FALSE) to .radian_profile!

thanks a lot.. after losing my mind over this issue, this solution finally solved it.

create a new text document in Users > (Name) . In my case its WINx10. then named it .radian_profile add the two lines

options(radian.auto_match = FALSE) options(radian.auto_indentation = FALSE)

and save. restart vs code and voila.

drfittri avatar Aug 06 '25 12:08 drfittri

Changing Radian settings is not ideal because it removes some nice features. The issue should be solved by PR #1631

FrancoisGuillem avatar Nov 14 '25 11:11 FrancoisGuillem