Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add a setting to Include the renv library (not the cache) to libPaths

オープン
#1,683 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
r, typescript, vscode

調査の方向性

既存の動作は R/languageServer.R で参照されています。まず r.useRenvLibPath を追跡し、その設定の宣言箇所を特定してください。要求されたプロジェクトライブラリのオプションを追加し、ライブラリパスが存在しない場合を適切に処理し、LSP が renv::paths$library() のパッケージを認識することを確認してください。

索引モデルが issue の本文から書いたものです。

説明

feature-request

Is your feature request related to a problem? Please describe.
I am working with a project that has a dedicated renv, where some packages live directly in renv::paths$library() and are not just links to the renv::paths$cache(). I am trying to get the LSP to know about them.
My current workaround is to put .libPaths(c(renv::paths$library(), .libPaths())) in the local .Rprofile.

Describe the solution you'd like
I would like to have a setting, similar to the existing "r.useRenvLibPath" that does the above.

Describe alternatives you've considered
The existing "r.useRenvLibPath" setting includes the renv::paths$cache(), e.g. here
This does not work because it does not contain some packages in my project renv.

Additional context
I am not sure why you would ever want the cache over the project-specific library?
This also makes the LSP see packages from the whole renv cache, which might not even be from the current project.
Maybe the option should be updated to always use library? (Of course the library path might not exist in some projects, and that needs to be dealt with gracefully).

主要言語
TypeScript
スター
1.2k
フォーク
139
平均マージ
23時間 31分
マージ済み PR(30日)
13

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

REditorSupport/vscode-R のほかの issue

REditorSupport/vscode-R の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。