Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#1,683 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
r, typescript, vscode

Direzione di ricerca

Il comportamento esistente è referenziato in R/languageServer.R; inizia tracciando r.useRenvLibPath e individuando la dichiarazione della relativa impostazione. Aggiungi l’opzione richiesta per la libreria del progetto, gestisci correttamente un percorso della libreria mancante e verifica che l’LSP veda i pacchetti di renv::paths$library().

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
TypeScript
Stelle
1.2k
Fork
139
Merge medio
23h 31m
PR unite (30g)
13

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di REditorSupport/vscode-R

Tutte le issue di REditorSupport/vscode-R

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.