You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Switch 'r.packageInstall' command/task in R extension to not use pak #2955
I do hope that it remains easy to use pak for this, while allowing folks (or even defaulting) to use another approach. So when we prioritize this, I'd be very motivated to work on it.
My takeaway from #9794 is that the difference noticed by the user is probably that RStudio defaults to "just install from source", whereas pak does a build, then install. Therefore the pak workflow runs into https://bugs.r-project.org/show_bug.cgi?id=18186, i.e. the huge bummer that .Rbuildignore is enforced only after copying the entire source folder. This can cause pain when files that are huge or broken (e.g. broken symlink) are copied just so they can be later deleted.
Also, the fact that pak installs from a temp directory is unfavorable for debugging and source refs.
I predict something we'll look into and request when we tackle this is seeing if pak can change or offer more flexibility so we can keep using it but avoiding some of the current downsides. Because the way pak handles upgrading dependencies (or, rather, not necessarily upgrading) is a big win.
Activity
jennybc commentedon Jul 12, 2024
I do hope that it remains easy to use pak for this, while allowing folks (or even defaulting) to use another approach. So when we prioritize this, I'd be very motivated to work on it.
juliasilge commentedon Oct 6, 2025
Another example of someone having trouble with how we have set this up in #9794
jennybc commentedon Oct 6, 2025
I'm not sure that #9794 is this, but it could have some connection.
jennybc commentedon Oct 8, 2025
My takeaway from #9794 is that the difference noticed by the user is probably that RStudio defaults to "just install from source", whereas pak does a build, then install. Therefore the pak workflow runs into https://bugs.r-project.org/show_bug.cgi?id=18186, i.e. the huge bummer that
.Rbuildignoreis enforced only after copying the entire source folder. This can cause pain when files that are huge or broken (e.g. broken symlink) are copied just so they can be later deleted.Also, the fact that pak installs from a temp directory is unfavorable for debugging and source refs.
I predict something we'll look into and request when we tackle this is seeing if pak can change or offer more flexibility so we can keep using it but avoiding some of the current downsides. Because the way pak handles upgrading dependencies (or, rather, not necessarily upgrading) is a big win.
jennybc commentedon Oct 8, 2025
Linking to issues in pak that seem related to concerns surfaced here:
pkgbuildto build the package r-lib/pak#789juliasilge commentedon Dec 4, 2025
We think we do really want to consider having a base R implementation, maybe the default even, maybe even no pak here for this particular use case.
Add option for `r.packageInstall` that does not use pak (#11431)
Add option for `r.packageInstall` that does not use pak (#11431)
testlabauto commentedon Jan 29, 2026
Verified Fixed
Test scenario(s)
Verified according to: #11431
Link(s) to test cases run or created: