cursor on Mac local connected to server.
pixi
In workspace, pixi init will look for either pixi.toml or pyproject.toml. Pure R users might find pixi.toml useful. I am use pyproject.toml. and a section of  [tool.pixi.workspace] indicates that this workplace is also working with pixi.
[tool.pixi.workspace]
channels = ["conda-forge", "bioconda"] ## here are the channels you need
platforms = ["linux-64"] ## here's the platform you work on
[tool.pixi.dependencies]
## always have the following dependencies, versions depends
r-languageserver = ">=0.3.16,<0.4"
r-base = ">=4.4.3,<4.5"
r-rmarkdown = ">=2.29,<3"
quarto = ">=1.7.33,<2"
jupyterlab = ">=4.4.6,<5" ## have this if you want jupyter to pick up pixi env
pixi install your env.
pixi and R in vscode
extensions for R&Rmd in cursor
- quarto.Quarto
 - REditorSupport.R
 - RDebugger.R Debugger
 - jkroening.vscodeR
 - yzhang.Markdown All in One
 
extensions for pixi
- jjjermiah.Pixi VSCode
 
vscode settings
In workspace, create a .vscode folder, write a settings.json with the following contents, replace {workplacepath} to your workplace path:
{
    "r.rterm.linux": "{workplacepath}/.pixi/envs/default/bin/R",
    "r.rpath.linux": "{workplacepath}/.pixi/envs/default/bin/R",
    "r.rterm.option": [
      "--vanilla"
    ],
    "r.sessionWatcher": true,
    "r.bracketedPaste": true,
    "r.plot.useHttpgd": true,
    "r.rmarkdown.enableCodeLens": true
    }
What your will have
- you can use pixi to manage your env. with 
pixi add - you can 
Run ChunkorRun Above- Plots will go to XQuartz
 
 - You have Outline for your Rmd
    
- Headings
 - Data/Functions under each headings
 
 - Timeline for your edits history
 - Integrated to other features of your cursor, like github
 
Other note
For non-package env, not write build-system section (and optionally package=false under tool.uv section).