posit-dev / positron

Positron, a next-generation data science IDE
Other
996 stars 22 forks source link

Configurable R package load command #3242

Open gadenbuie opened 1 month ago

gadenbuie commented 1 month 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 1 month 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.).