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

WIP R Executable Selection

Open ElianHugh opened this issue 1 year ago • 1 comments

PR: Executable Selection

  • Contributes: R executable selection.
  • Related issues #696 #1130 #1148 #747

Aims

  1. Consolidate R path selection into a more user-friendly UI
  2. Make it easier for users to find and use their R installations
  3. Inform users when their R installations are not usable
  4. Do not break any user workflows. The PR should be a seamless integration with what users are used to
  5. Fully support virtual R installations (mamba and conda)

Features

New Status Bar

If there is no valid rpath set by the user, the language status item will prompt the user to select an R executable.

language_item

The status item can be collapsed if the user doesn’t want the item to be visible at all times.

collapsed_item

Executable Selector

Users will be shown a quickpick of valid R paths that were either found by VSCode, or were set by the user. Selecting a path will set the executable to the current workspace.

selector

The quickpick is aware of renv lock files and will attempt to recommend R versions that match the R version in the lock file. recommended_path

Conda/Mamba Support

The executable service is aware of conda and mamba installations, and will modify any background services to use conda run or mamba run, and will modify the terminal accordingly as well. Both conda and mamba should work without any user intervention.

conda_spawnargs

Multi-root workspace support

Different roots can have different R versions set to them.

If the user is working in a multi-root workspace, selecting an executable will prompt the user to select which workspace they want the executable to be set to.

ElianHugh avatar Jan 05 '24 03:01 ElianHugh