posit-dev / positron

Positron, a next-generation data science IDE
https://positron.posit.co
Other
2.85k stars 91 forks source link

Configurable R package load command #3242

Open gadenbuie opened 6 months ago

gadenbuie commented 6 months ago

Currently, in an R project with a DESCRIPTION file, Cmd + Shift + L runs devtools::load_all(). If devtools isn't installed, Positron prompts the user to install devtools.

In general, it's safe to assume users doing package development will have devtools installed, but I have a few projects where I use a renv + a package structure to organize my work. In these cases, devtools is a heavy installation and it would be helpful to be able to configure Positron to use pkgload::load_all() instead.

jennybc commented 6 months ago

Feels related to #2955, in that we want to ship with "batteries included (or easily accessible)" for package development, while also making it possible for more advanced and opinionated users to fully configure these gestures (load, install, etc.).