posit-dev / positron

Positron, a next-generation data science IDE
Other
2.41k stars 73 forks source link

Ark: Smart completions for `install.packages()` #1830

Open DavisVaughan opened 10 months ago

DavisVaughan commented 10 months ago

Pulled from https://github.com/posit-dev/positron/issues/127

i.e. show the list of possible packages to install. Maintain a session based cache of packages based on the repo URL.

See https://github.com/rstudio/rstudio/blob/7f5869fcb7d263b0284fd09a7ec25afd1e3da00f/src/cpp/session/modules/SessionRCompletions.R#L2414-L2502

jmcphers commented 8 months ago

Screenshot of RStudio's implementation:

image
jennybc commented 8 months ago

In #1978, we're going to introduce some usage of pak, to improve the package developer experience. So once we cross that rubicon, it would be cool if this treatment of install.packages() can also fire for, e.g., pak::pak() or pak::pkg_install().