broken pipe (os error 32) when trying to render qmd files - debian 12

Hello,

I am quite new to linux world. I have this issue. When trying to render qmd file in the latest Rstudio with latest R version it throws me this error:

ERROR: Error executing '/usr/lib/R/bin/Rscript': Broken pipe (os error 32)

Rscript execution error: No such file or directory
Problem with running R found at /usr/lib/R/bin/Rscript to check environment configurations.
Please check your installation of R.

If I run

quarto check

I get this:

Quarto 1.6.42
[✓] Checking environment information...
      Quarto cache location: /home/drwhites/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.4.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.46.3: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.6.42
      Path: /home/drwhites/opt/quarto-1.6.42/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /usr/bin
      Version: 2022

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.12.2 (Conda)
      Path: /home/drwhites/miniconda3/bin/python
      Jupyter: 5.7.2
      Kernels: python3

[✓] Checking Jupyter engine render....OK

Rscript execution error: No such file or directory
[✓] Checking R installation...........(None)

R succesfully found at /usr/lib/R/bin/Rscript.
However, a problem was encountered when checking configurations of packages.
Please check your installation of R.

R and packages and Rmd rendering is fine. In VSCode with python3 engine qmd files are regularly rendered.
I have no idea how to figure out this problem.

Help is really appreaciated! :grin: